Bilbosax opened a new issue #1064: URL: https://github.com/apache/royale-asjs/issues/1064
I have spent the last two days trying to get RemoteObject to work in Royale. I have it working in Flex/AIR just fine, so I have some questions about what is the same or different between Flex and Royale. I am trying to use mx RemoteObject instead of the js version. First, here are the parameters that I use in my project: XML config file - services-config.xml (this points to the destination) PHP Classname - BrokerageService method to call - getStates endpoint - https://www.mywebsite.com/services/ My code looks like this: ``` <j:beads> <js:ClassAliasBead /> </j:beads> <fx:Declarations> <mx:RemoteObject id="brokerageRO" destination="zend" source="BrokerageService" showBusyCursor="false"> <mx:method name="getStates" result="getStatesResultHandler(event)" fault="databaseFaultHandler(event)"/> </mx:RemoteObject> </fx:Declarations> ``` So I have include the bead <js:ClassAliasBead/>, I include the services-config.xml in my compiler options, and everything else is pretty much the way that it has always been. But it does not work. So what do I need to do differently? 1. Do I need to include the services-config.xml in my compiler options in Royale, and if not, how do I set my destination, source, and endpoints correctly given the data that I presented above? 2. is it still ok to use the mx:method to call my particular PHP method? ---------------------------------------------------------------- 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]
