cristallium edited a comment on issue #1064:
URL: https://github.com/apache/royale-asjs/issues/1064#issuecomment-768396691


   Hi,
   
   I don't know Zend Amf, but looking at framewrok Zend manual, end point 
should be something like http://example.com/server.php (It seems server.php is 
missing). 
   However  as it seem to return something, I beleve your apache config must 
set `server.php` as default file to serve . But calling directly  
https://dealestator.com/services/server.php return 404, I don't know if it's 
right or not. I thing it's right because of "`Zend Amf Endpoint`"
   
   Looking at source code of `ZendFramework/library/Zend/Amf/Request/Http.php` 
then
   
   ```
   /**
        * Constructor
        *
        * Attempts to read from php://input to get raw POST request; if an error
        * occurs in doing so, or if the AMF body is invalid, the request is 
declared a
        * fault.
        *
        * @return void
        */
       public function __construct()
       {
           // php://input allows you to read raw POST data. It is a less memory
           // intensive alternative to $HTTP_RAW_POST_DATA and does not need any
           // special php.ini directives
           $amfRequest = file_get_contents('php://input');
   
           // Check to make sure that we have data on the input stream.
           if ($amfRequest != '') {
               $this->_rawRequest = $amfRequest;
               $this->initialize($amfRequest);
           } else {
               echo '<p>Zend Amf Endpoint</p>' ;
           }
       }
   ```
   
   So it seem right to return `'Zend Amf Endpoint'` if there is no or invalid 
`amfRequest`, perhaps you should check the way you are calling remote function 
service ?
   
   Could you show how do you call "getStates" in as3 ?
   Regards


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to