Connecting To Zend AMF Backend Via HTTPS

Environment:
- Flash Builder 4
- Flex 4 Beta 2
- Zend AMF (the one that gets automatically downloaded in Flash Builder 4)
Issue:
Using Flash Builder's "Connect To PHP" wizard, I can connect to my Zend AMF backend via HTTP but not HTTPS (and yes, my domain does have a valid SSL certificate from a trusted CA - it is not self signed).  Upon selecting the PHP class (using a SFTP mount to my web host) via the wizard, Flash Builder dies when "introspecting the service" and it throws this error:
Make sure that Zend Framework is installed correctly and  the parameter "amf.production" is not set to true in the amf_config.ini file  located in the project output folder.
Warning:  require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream:  No such file or directory in /home <blah>
If I change my PHP backend's URL from https://<domain> to http://<domain> then it works but I obviously need to use SSL for this application.

I upgraded to Zend Framework 1.10, which didn't help.  I also just installed Flash Builder 4 Premium (which was just released today) and that didn't help my situation either although I believe the problem is how I'm attempting to get my Flex client to communicate to my hosted web server.
All the examples I've seen demonstrate how to connect a flex client and PHP backend (via Zend AMF) to LOCALHOST.  I need to develop my Flex client on my laptop and hook into my PHP backend running on a hosted web server (not localhost).
Here are my server properties:
- Application server type = PHP
- Server location:
     - web root = Y:  (this maps to my Y: drive on windows which is a SFTP mount to my web host)
     - root URL = https://cl21.<web_host>.com/~<username>
- Output folder = Y:\<app>-debug
I can get this to work if I use my dedicated domain name www.<my_domain>.com but I haven't yet purchased a dedicated IP and SSL certificate so I'm attempting to use my web host's shared SSL certificate (which is valid).  The problem seems to be related to the setting "root URL".  Can you not point the flex client to anything other than a root URL?  Most server-side development happens on a shared dev server (e.g. sandbox.company_name.com/developer1, sandbox.company_name.com/developer2, etc.)

Similar Messages

  • Flex4 Zend AMF error - NetConnection.Call.Failed: HTTP

    Hi,
    I'm working with FLEX 4 (developing in flash builder 4 plugins for eclipse) and PHP Zend Framework v 1.9.
    When I run the application from the flash builder the AMF comunication work fine, but when I try to run directly from URL in a browser I got the following error: 
    Send failed
    Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost/Project-debug/gateway.php'
    I think that I get this error since I have update my flash builder plugin.... previos version of my .swf project didn't give my this issue.
    Somebody can help me? I don't realy have any idea how to solve this problem.
    P.S.
    I don't have services-config.xml file in my project cause the amf zend samples that I followed don't say to create it, somebody knows why flex 4 doesn't need it?
    Thanks

    The MessageBroker servlet is not installed properly. The context-root of the two Tomcat LC DS installs must be different. Test hitting the context-root Flex_App on both machines (http://hostIP:8080/Flex_App). If the context-root is valid you will hit the index.html page of the valid context-root which looks like this...
    Welcome to Adobe LiveCycle Data Services ES2 Version  3!
    This is an empty LiveCycle Data Services ES application that serves as a  template for creating your custom application.
    Visit the product page for documentation and further information.
    Steve

  • Ensure image loaded via http connection

    hi all
    I have a midlet that will load various images and displaying them on a canvas, upon request from the sever via HTTP connection.
    And since the operation are being performed via the commands, the http connection code had been placed in another thread.
    My question is, how can I ensure that all the necessary images are being loaded before moving on to execute the next code segment in my midlet?

    When i try to send the server its unable to recieve image data . it was able to recieve request data.
    As we use the same procedure to send data(irrespective of form as i m sending bytes)
    Here is the code snippet
    private boolean OpenHTTPConnection(String xmlData, String strUrl, String strRequestType) {
            System.out.println("UUURRRRLLL ->" + strUrl);
            System.out.println("XML Data---> ->" + xmlData + "'''''''" + bHTTPStatus);
            int rc, height, width;
            byte[] data;
            byte[] imageData = null;
            InputStream iStrm = null;
            try {
                if (xmlData != null) {
                    con = (HttpConnection) Connector.open(strUrl, Connector.READ_WRITE, false);
                    con.setRequestMethod(HttpConnection.POST);
                    data = xmlData.getBytes();
                    System.out.println("1->" + data);
                    OutputStream ops = con.openOutputStream();
                    System.out.println("----data length---" + data.length);
                  ops.write(data);
       if (Snapper.isUpload == true) {
    ops.write(Snapper.raw,0,Snapper.raw.length);
                    rc = con.getResponseCode();
                    if (rc != HttpConnection.HTTP_OK) {
                        result.setText("Server is not ready...");
                    if (ops != null) {
                        ops.close();
                    xmlData = null;
                    imageData = null;
                    Snapper.isUpload = false;
                }// end of null check
                else {
                    System.out.println("Open the Con using this URL--->" + strUrl);
                    // open the specific photo for View module
                    con = (HttpConnection) Connector.open(strUrl);
                    con.setRequestMethod(HttpConnection.GET);
                strParameters = null;
            } catch (Exception e) {
                System.out.println("Exception------->" + e);
                e.printStackTrace();
                midlet.uiManeger.SetLastErrorCode(Parser.NO_NETWORK);
            return true;
        }

  • OSB call to remote Web Service via https proxy and https CONNECT problem

    Hi
    I have a service that calls a web service on another server as a web service. This call is via https and the certificate validation raises no errors.
    I now want this call to go via a squid httpd proxy on port 3128 on some machine. So I would like to use HTTP CONNECT (RFC 2817) proxying,. But when I set up this as a proxy, I am getting "Certificate chain" error messages. The certifcate chains is no different now from when I called without the http proxy, so what am I doing wrong? Does OSB support HTTP CONNECT?
    -Johan

    The exeption we are getting is BEA-380000
    General runtime error: [Security:090477]Certificate chain received from XXX - 123.123.123.123 --> test.salesforce.com was not trusted causing SSL handshake failure.
    This is of course not relevant if the callout were using CONNECT. In the CONNECT scenario, OSB would not care about XXX's certificate.

  • Getting error when connecting to url via https

    I am connecting to a url via https. Everything seems to work when I open the connnect as follows.
    conn = (HttpsURLConnection)theURL.openConnection();
    //Set the proper connections properties
    conn.setRequestMethod("POST");
    conn.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
    conn.setDoOutput(true);
    conn.setDoInput(true);
    But when I try to send data with the following code:
    StringBuffer sendThis = new StringBuffer();
    sendThis.append( URLEncoder.encode("uid=", "UTF-8") );
    sendThis.append( URLEncoder.encode("This is the UID", "UTF-8") );
    /* PrintWriter pout = new PrintWriter( new OutputStreamWriter( conn.getOutputStream(), "8859_1"), true);
    pout.print (sendThis.toString());
    pout.flush();
    I get an error that says "could not find trusted certificate"
    Could not find trusted certificate
    javax.net.ssl.SSLHandshakeException: Could not find trusted certificate
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(DashoA62
    75)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
    at java.io.OutputStream.write(OutputStream.java:58)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
    (DashoA6275)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:562)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Dash
    oA6275)
    What am I missing ?
    thanks in advance.
    kris.

    You have to make sure that the cert for the CA which signed the server's
    certificate is in your keystore (cacerts) file.
    Check out 'keytool' and the JSSE readme.
    Cheers,
    Billy.

  • AnyConnect on Apple iOS - VPN-Connect via HTTP-Proxy

    Hi,
    is it possible, that the AnyConnect-Client for Apple iOS (i.e. iPAD) automatically uses the configured HTTP-Proxy in the WLAN properties for the establishment of the VPN-Connection (via SSL/TLS)?
    I've tested it, but it does not work. In the documentation is stated, that VPN establishment via HTTP-Proxy works only in Windows (AnyConnect uses the IE Proxy settings to connect to the ASA for VPN establishment).
    Thanks

    As per w2k3 sniffer trace, 2851 requesting with user=vpnfamily and encrypted password. The password "Password1" which is VPN group's key sending to IAS?
    ->I have "vpnfamily" with password "Password1" but no luck
    Event log shows "Fully-Qualified-User-Name = INFRA\vpnfamily". INFRA is AD NetBIOS name. 2851 router's domain name is "family.com"
    ->Is this something wrong?

  • Remote connection via http connection-URL access

    Hello all,
    I would like to connect to the customer Business object system from our solution manager. The customer has configured http connection and has opened the connection in marketplace and has maintained http connection-URL access. The URL has also been maintained.
    I have added the corresponding entry also in my hosts file. But i am not able to access the customer URL.
    Anyone please tell me how to do remote connection for the connection type "http connection - URL access".
    Thanks,
    Aishwarya.

    Hi Tim,
    I am getting "The page cant be displayed" error while trying the BO system's URL in my browser.
    Please tell me which of the below methods i can use:
    1. By directly connecting to the BO system URL from the browser (is it possible?)
    2. By using VPN connection
    3. By installing diagnostic agent in solution manager
    4. By following the steps in this link:
    Establishing a Connection Using a Destination (SM59) - Components of SAP Communication Technology - SAP Library
    Regards,
    Aishwarya.

  • Zend AMF extremely slow first request

    Hi all,
    I'm having a weird problem with Zend AMF and was wondering if anyone else has seen this before.
    I've got a very simple PHP/MySQL backend that returns multidimensional arrays to Flex via Zend AMF.
    Now this all worked fine up to the point that I started testing my app with a remote server instead of my local test server.
    With the remote server I noticed that sometimes, but always the first time, some PHP function is called it takes forever to call the callback function with a result. I'm talking about around 1 to 2 minutes!
    Now, when I call that same php function via a normal url every time it returns the right results in a couple of milliseconds.
    When the function has been called once it seems to be ok and next time it's called it returns results within milliseconds.
    I've had a look with a network sniffer to see if the transfer of data takes long, but that's all fine...
    So it looks to me as if it just takes forever before the RemoteObject calls it's callback function.
    I'll be testing with some stripped down code later tonight and will also set it up on a different server, but I was hoping someone else has seen this and knows a workaround...
    Thanks
    Skip

    Hmm, i just did some more tests, but the results do update so it doesn't look like it's a cached result.
    I'm not entirely sure but it looks like when multiple AMF methods are called too close to each other they are combined into one HTTP POST request to the AMF gateway. When this happens the response is extremely slow, whereas when I have make the second call after the first one has finished completely the response is ok (around 200 milliseconds).
    You wouldn't happen to know how RemoteObject handles multiple calls to an AMF backend, right?

  • Zend AMF Authentication & Authorization

    How do I secure my PHP services created with 'Connect To PHP' wizard?
    The web is full of tutorials on connecting to PHP but I found nothing on securing the services.
    The 'Connect to PHP' wizard generates a gateway.php which doesn't do authorization.
    Do I have to replace this endpoint with my own? Why doesn't Adobe have tutorials on this?
    maybe PHP apps are not meant to be safe?

    I've been struggling with it, and figured it all out - so, perhaps it could help others.
    The authentication is called on the server only if credentials supplied from the client (via the remote procedure call headers). This snippet illustrates the setup of custom auth (these are the last 6 lines of gateway.php script):
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // Handle request
    $auth = new My_Amf_Auth(); // authentication
    $server->setAuth($auth);
    $acl = new Zend_Acl(); // authorization
    $server->setAcl($acl);
    echo $server->handle();
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Now, your custom auth should extend Zend_Amf_Auth_Abstract. Since I want to authenticate users from a database, I bring the Zend_Auth_Adapter_DbTable to play. But since I cannot extend both Zend_Amf_Auth_Abstract and Zend_Auth_Adapter_DbTable, I use a composition:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <?php
    require_once ('Zend/Amf/Auth/Abstract.php');
    * AMF auth class by Danko Kozar, dankokozar.com
    * @author dkozar
    class My_Amf_Auth extends Zend_Amf_Auth_Abstract {
        function __construct() {
        public function authenticate() {
            $adapter = My_Db_Adapter::getInstance();            
            $adapter->setIdentity($this->_username);
            $adapter->setCredential($this->_password);
            // the adapter call
            // you can wrap it into try.. catch and process DB connection errors
            $result = Zend_Auth::getInstance()->authenticate($adapter);
            return $result;
    ?>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Here's the adapter class:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <?php
    * DB table adapter auth class for AMF by Danko Kozar, dankokozar.com
    * @author dkozar
    * Singleton
    class My_Db_Adapter extends Zend_Auth_Adapter_DbTable {
        protected static $_instance = null;
         * private!
         * @param My_Db_Adapter $adapter
        public function __construct(Zend_Db_Adapter_Abstract $adapter = null) {
            if (!$adapter)
                $adapter = new Zend_Db_Adapter_Mysqli(
                    array(
                        'dbname' => 'test',
                        'username' => 'root',
                        'password' => '')
            parent::__construct($adapter);
            $this
                ->setTableName('users')
                ->setIdentityColumn('username')
                ->setCredentialColumn('password')
            // just for testing
    //        $this
    //            ->setIdentity('username')
    //            ->setCredential('password')
         * @return  My_Db_Adapter
        public static function getInstance()
            if (null === self::$_instance) {
                self::$_instance = new self();
            return self::$_instance;
        public function authenticate() {
            $_authResult = parent::authenticate();
            // NOTE: The point is that $result->_identity is an OBJECT (of type stdClass), NOT string
            // with Zend_Auth_Adapter_DbTable it is internally accomplished by calling its getResultRowObject() method
            // It constructs the stdClass with properties named after table attributes
    //        $user = new stdClass();
    //        $user->role = "administrator";
    //        $user->username = $_authResult->getIdentity();
            $identity = $this->getResultRowObject();
            $result = new Zend_Auth_Result($_authResult->getCode(), $identity);
            return $result;
    ?>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    On the Flex side I have an auto-generated class (MyService) which extends another auto-generated class (_Super_MyService).
    The point is that the outer one is auto-generated only once (initially), and you can modify it, without worrying to be overwritten on service regeneration.
    There's a protected property _serviceControl (which is of type RemoteObject) which could be tweaked if needed.
    I'm tweaking it by of setting the endpoint (with string read from a client side config in preInitializeService() method). Plus, I'm adding 2 more methods, which expose setCredentials and setRemoteCredentials methods of _serviceControl, so I can acces it from my code.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    package services.myservice
        public class MyService extends _Super_MyService
             * Override super.init() to provide any initialization customization if needed.
            protected override function preInitializeService():void
                super.preInitializeService();
                // Initialization customization goes here
                _serviceControl.endpoint = "http://localhost/myapp/gateway.php";
            public function setCredentials(username:String, password:String, charset:String=null):void
                _serviceControl.setCredentials(username, password, charset);
            public function setRemoteCredentials(username:String, password:String, charset:String=null):void
                _serviceControl.setRemoteCredentials(username, password, charset);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    So, before calling MyService methods, I'm setting the credentials with setCredentials() method and this runs the authentication on the PHP side:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    private var service:MyService;
    service = new MyService(); // ServiceLocator.getInstance().getHTTPService("presetLoader");
    service.setCredentials("user1", "pass1");
    var token:AsyncToken = service.getData();
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    The authentication via Zend_Amf_Server is, by the way, OPTIONAL! Meaning, with no credentials supplied, Zend_Amf_Server will NOT RUN IT. Thus you should rely on Zend_Acl (e.g. roles) to so your permissions and security! 
    Finally, here's the MySQL DB table I've been using for authentication: 
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    -- Table structure for table `users`
    CREATE TABLE IF NOT EXISTS `users` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `username` varchar(50) NOT NULL,
      `password` varchar(32) DEFAULT NULL,
      `role` varchar(45) DEFAULT NULL,
      `firstname` varchar(50) DEFAULT NULL,
      `lastname` varchar(50) DEFAULT NULL,
      `email` varchar(255) DEFAULT NULL,
      PRIMARY KEY (`id`),
      UNIQUE KEY `username` (`username`),
      UNIQUE KEY `id_UNIQUE` (`id`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; 
    -- Dumping data for table `users`
    INSERT INTO `users` (`id`, `username`, `password`, `role`, `firstname`, `lastname`, `email`) VALUES
    (1, 'user1', 'pass1', 'administrator', 'Danko', 'Kozar', NULL); 
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Cheers!
    Danko

  • Zend AMF and Flex 4

    Hello,
    I am currently working on a windowed app that uses the Zend AMF to connect to the database. I have been trying move the framework from my local testing server to my web server.
    First I ftped the framework files, my gateway.php, and amf_config.ini to the server. Inside the amf_config, changed the webroot to be the location of the ZendFramework and I also pointed the _super_class generated by the dataservice to my webserver. My php.ini is also configured to include that path to the ZendFramework.
    Did I miss a step at some point / was there something I was supposed to do when I created the data service? Is it even possible for an desktop AIR app to work with the ZendFramework when it is on a web server?
    My host is Bluehost

    Hello there.
    Here's the ServiceLocator and delegates I am using....
    // LoginDelegate.as
    package com.myproj.products.business {
         import com.myproj.products.vo.LoginVO;
         import mx.rpc.IResponder;
         import com.adobe.cairngorm.business.ServiceLocator;
         public class LoginDelegate {
              // anything that implements the IResponder interface can act as a responder
              private var responder:IResponder;
              private var service:Object;
              public function LoginDelegate(responder:IResponder) {
                   this.responder = responder;
                   this.service = ServiceLocator.getInstance().getRemoteObject("loginService");
              public function login(loginAttempt:LoginVO):void {
                   // Call the method of service that resides on server
                   var call:Object = service.login(loginAttempt);
                   // Send the response to responder
                   call.addResponder(responder);
    // com/myproj/products/business/Services.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <cairngorm:ServiceLocator
         xmlns:mx="http://www.adobe.com/2006/mxml"
            xmlns:cairngorm="com.adobe.cairngorm.business.*">
         <!-- Login Service -->
         <mx:RemoteObject
              id="loginService"
              destination="zend"
              source="LoginService"
              showBusyCursor="true">
              <mx:method name="doLogin" />
         </mx:RemoteObject>
    </cairngorm:ServiceLocator>
    With kind regards
    ShiVik

  • Using ADFS authentication to perform SSO via HTTP GET request

    Hi,
    Can i authenticate users (those users are clients, at home) to a web application using ADFS without SAML tokens?
    The situation is that i want the clients to perform SSO to the website via a link they receive in their mailboxes. 
    I thought about a solution that combines JWT in a URL link that each user will get to his private mail. this link will contain the users' claim (such as ID Num, given from AD DS Server dedicated especially for them).
    Thus, the user will receive an email with a link that already contains a short period of time JWT to perform SSO to the webapp.
    Is it possible ? anybody heard about a similar solution ?

    Sandra
    Thanks for your message
    Here is the my requirment
    The basic flow of a Where 2 Get It REST API call is:
    1) create the required XML structure,
    2) URI encode it,
    3) make a HTTP GET request,
    4) then parse the return XML document.
    Currently i have some data in ABAP structure with 5 fields, i need to create XML from the those 5 fields,and needs to be URI
    encode it, and then needs to make a HTTP get request to connect Where to Get It REST API, finally it will return XML document via HTTP Get request , and then needs to convert the return XML to  ABAP structure for further processing .the above 4 points will be implemented in my report.
    Any  body could help on this

  • Is it possible to connect a mac book pro via thunderbolt and a dvi switchbox (multiple computers) to a thunderbolt display?

    Hi,
    I'm planning to buy a thunderbolt display.Since I have not only apple computers with a thunderbolt port I wonder if it's possible to connect my mac book pro via thunderbolt and a DVI switchbox via a "mini displayport to DVI connector" to the thunderbolt display at the same time. Thunderbolt is a bus architecture. Thus there must be an ingoing and an outgoing port on the display. The rearview of the display I've seen so far don't show this:
    If this is not possible then I must question the market chances of this product. Seems as if the product marketing guys exaggerated the launch of the thunderbolt technology.
    -ais-swiss

    ais-swiss wrote:
    How to connect windows laptop (vga) to thunderbolt display?
    AHHH??!!!!!!  Was that your original question??   I assumed you were trying to output FROM your computer (MacBook Pro w/ Thunderbolt) to the new display and then OUT to be the video source to a DVI switcher.
    MB Pro w/TB ---> TB Display ---> mDP-to-DVI adapter ---> DVI switcher
    So it seems as if it's not possible to use the thunderbolt display with the mini display port adapter to DVI you've mentioned.
    I did not understand that you were trying to use other PC's into a switcher and then THAT Video source to connect INTO the TB display.   If THAT is what you're trying to do, then NO....  You can NOT use the new TB Display to be used to display "FROM" a DVI switcher (and also can NOT be used to display from other Non-TB-Apple computers).
    I've also called apple. The statement was that one needs a computer with osx 10.6.x in order to connect the thunderbolt display. That makes it impossible to hook a windows pc or older mac to the new and shiny thunderbolt display.
    I wonder why apple doesn't state this in their technical descriptions...?
    -ais-swiss
    Actually, the state that information all over the Tech Specs on the Apple Store website.
    http://store.apple.com/us/product/MC914LL/A?mco=MTY3ODQ5OTY
    Here are two different statements from that webpage:
    So yes.... other NON-Apple PC's (or non-TB devices) do Not have the Thunderbolt technology (hardware/software) to be able to communicate with the TB display or other TB devices.

  • Zend AMF Data Service Return Problem

    Hi Folks,
    I am working with FB4 and Zend AMF/PHP and MySQL.  I began integrating the PHP stuff using the great article by Mihai Corlan called 'Working in Flash Builder 4 with Flex and PHP.  I followed all the steps exactly, aside from creating my own app-specific PHP classes and functions, etc...  I 'hooked up' the Zend stuff just like the article, created a text datagrid, just like the article, and viola!, it worked.  I then tweaked it a bit and interwove it into my 'real' component.  So far, so good.
    Then I created a second PHP class with a different 'get data' type of function.  It queries a different table in MySQL, but is essentially the 'same' as the query/function in the initial PHP class.
    In FB, in the Data Services window, I choose the 'Connect to Data/Services' function, just like the first time.  I then find/select my PHP class file and FB 'interrogates it' enough to show me the function that exists in the class.  I 'finish' the operation and it adds a new 'service' to the list of services in that window.  Again, so far, so good.
    The problem comes when I try to 'test' the service or 'configure return types' (which basically requires a 'test' operation anyway).  I can enter the 'input' params just fine, but when I try to execute the call, I get the following error:
    InvocationTargetException:There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.
    Reason: An error occured while reading response sent by server. Try encoding the response suitably before sending it. e.g. If a database column contains UTF-8 characters then use utf8_encode() to encode its value before returning it from the operation.
    I don't know where to go after this.  Again - the 2nd PHP class is essentially identical to the 1st.  The function in it is essentially identical, differing only by the input params, the name of the function and the actual SQL it sends to MySQL.  There is no special text, no special characters, no image stuff, nothing.  I do not 'encode' the results of the function in the first class - in fact the code in the second class is practically identical to the first.  I do not know what the error is talking about.  My guess is that it's more of a generic message.
    I can debug the PHP code just fine from within a seperate instance of Eclipse.  The function runs/returns just fine - an array of PHP-defined objects (simple strings).
    Any insights or advice would be welcomed.   Thank you,
    -David Baron

    Thank Jorge, but that was not the issue, though, it may be related.
    I checked the mySQL my.ini file, and there was already an entry for:
    [mysql]
    default-character-set=utf8
    I added the 'default-collation=utf8_unicode_ci', like you suggested, but that didn't do anything.
    I checked the Apache httpd.conf file, and added the following line 'under' the "DefaultType text/plain" line:
    AddDefaultCharset UTF-8    but that did not do anything.
    I checked my mySQL database, all the tables involved.  They were already at UTF-8 (default).  However, some of the 'varchar' columns were defined as 'latin 1-default collation'.   I changed them all to utf-8 (default table collation), but that did not help either.
    Finally, I found the problem, though I don't really know if it is "my" problem, or ZendAMF's problem, or Adobe's problem.
    It turned out that 'some' of my data had a 'bad' character in it.  Specifically, I had 'copied and pasted' some data from MS Word into mySQL Workbench.  Some of the data included the 'elipsis' character - you know, when you type "..." (dot dot dot) in MS Word, it replaces the three periods with a single elipsis character.  Although PHP could easily query and assemble this data into a nice object array, I noticed that that character showed up (in PHP's debugger) as a 'box' character, meaning "bad character".  Thus, I guess, Zend AMF and/or FlashBuilder could not 'bring over' and/or deal with this type of character.  As soon as I replace the few instances of that character with three periods, everything began to work perfectly.
    So... what to do about this?  I thought I was through with silly encoding/decoding of data when I left JavaScript and HTML behind in moving to FlashBuilder technology.  Am I really going to have to worry about this kind of thing?  Or might this be a bug/deficiency somewhere in the stack?
    Thanks for your help,
    -David

  • Is it possible that iMac corrupts connected external hdd-s drive via USB?

    Is it possible that iMac corrupts connected external hdd-s drive via USB? (two wd cav. green 2tb from different purchase went down in one day, both from the backside usb ports)
    First one of my video storage hdd, full of files suddenly got extremely slow, and a few minutes later, it unmounted itself, but with the unmount error, but nobody even touched the cables, electricity etc. When I tried to mount it again, it did not respond, just give a periodical load light and ticking. First I thought it must be hardware failure, but since I bought a brand new drive today and it made the same problem as soon as I tried to format it. I got suspicious. The consol, said about these - i googled all but now solution so far. (WesternFresh is my drive)
    Oct 23 17:10:58 xxxx fseventsd[47]: disk logger: failed to open output file /Volumes/WesternFresh/.fseventsd/636573acca1d6550 (No such file or directory). mount point /Volumes/WesternFresh/.fseventsd
    Oct 24 10:55:42 xxxx com.apple.kextd[10]: Can't create kext cache under / - owner not root.
    Oct 24 17:23:05 tmdc diskarbitrationd[16]: unable to probe /dev/disk1 (status code 0xFFFFFFFA).
    and there was an I/O faliure not but it was on another mac - where i hoped itt will come back to live.
    I think - if it is possible - that the OS maybe misunderstand something about these drives, and try to change - maybe permissions - all the time if a usb external connects...? (I am not really into it as you see )
    Also about Disk Utility - it does not see any partition on the old hdd, but i shows the name of the product. If I connect the new hdd via the keyboard usb, the disk utility is able to see and format it, but the hdd will be still slow and tikking after it.
    Also I tried Disk Warrior (freezd out) and Techtool Pro 6 thanks to some ol'frineds - which also not saw the old hdd, but did nothing useful with the new one.
    About cav green: I have 3 of them and no error so far, and got 4 1tb cav green in 2 mybook studio II also without any problem.
    Iam a bit scared, and try not to plug in any usb hdd-s now, but I have to continue work, so I need solutions.
    I hope if it is not hardware failure, maybe some tricky terminal code will bring back the viability of my old hdd - and I won't have to spend a lot of money to recover data.
    strange.
    if anybody has a clue?
    update 1:
    i found this post also:
    https://discussions.apple.com/message/15905481#15905481
    I also made the mentioned steps - but it is a bit different sice it reproduce itself and I cant use DU.

    It turned out that WD is the big bad guy in this game.
    According the data rescue company where I asked for an inspection, both of the drives had their reader head loose. And in the one, which was my already-in-use disk its even damaged the platters... xxxxx
    So its time to pay bunch of money to recover, and take a walk to wd service to bang on the desk.
    Also note - it may be somehow related to intellispeed technology - since macs not really friendly with wd-s built-in solutions.
    On the other hand, with WD GP 1Tb there is no problems at all for ages.
    thanks guys, thread is closed

  • Logon failed when connecting to XML data source over HTTP

    I am trying to create a report using the standard report creation wizard:
    1) new, standard report
    2) create new connection
    3) xml and web services
    4) xml data source
    When using the sample from the SAP site, it works fine:
    http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/customer.xml
    I have an HTTP source that generates XML. I have a schema that describes this XML. If I save the XML to a local file it works fine as a data source with the schema. However, when I try to access the same data via HTTP, I get the following error:
    Logon failed.
    Details: Cannot open file
    Server returned HTTP response code: 401 for URL: http://localhost:8004/report.xqy?Validate%20XML=0&Use%20WS-Security%20Config%20File=&WS-Security%20File%20Location
    However, if I enter that URL in a browser it works fine. And even if I disable security on the HTTP source, it produces the same error.
    Does the URL for the HTTP data source have to conform to some specific pattern? For example, must the URL end in .xml?
    Kelly

    Sorry Brian,
    This is a public forum, if no one can help you do have the option to purchase a support case:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551
    Thank you
    Don

Maybe you are looking for

  • Interface Problems in Yosemite

    Problem shows up when using software other than the native OS X apps. If I attempt to close a window behind the app that has focus by clicking the red x part of the semaphore buttons (top left on every window) it will not work unless I change focus t

  • How to Initialize input  parameter in bean

    Hi all I have html(input), jsp (display), and bean . I want to give users option click next to display more records or go back to begin a new search again. therefor I need to initialize the input string, but I use string=null or setString(" '') in my

  • How do I record my computer audio and my screen?

    So, I've been making lyric videos using Keynote because they look a lot cooler that with iMovie. The Problem is, I'm trying to use QuickTime to Record the keynote along with the audio I have set up with it. However, I can either record all outside so

  • Where to download an older version of iTunes

    Where can you download an earlier version of iTunes?

  • Reinstalling 10.4 after failed 10.4.5 upgrade

    Having trouble getting 10.4 reinstalled on my mini after the 10.4.5 upgrade (system was running fine on 10.4.4) borked the login process. The story up to now... Mac mini (1.25/40GB/1GB/Combo) was running 10.4.4 with no problems. Downloaded and instal