You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2021/01/25 11:45:02 UTC
[GitHub] [royale-asjs] carlosrovira commented on issue #1064: AMFPHP RemoteObject
carlosrovira commented on issue #1064:
URL: https://github.com/apache/royale-asjs/issues/1064#issuecomment-766759380
1.- MX RemoteObject is the good verions. The version in NET works but is not fully feature complete.
2.- source property could probably work, but is not recommended since you're exposing the name of the source class in PHP (or java, or .NET,...) in the client. I know it was deprecated, but still in the class for backward compatibility.
3.- Use endPoint:
```xml
<mx:RemoteObject id="serviceResp" fault="onFault(event)"
endpoint="http://localhost:8080/messagebroker/websocket-amf"
destination="exampleService"/>
```
4.- mx:method is not fully implemented, instead you need to use `Responder`. This is less mxml, but I think the right way to go in a serious app:
```actionscript
var r:Responder = new Responder(onSendSomeProductResult, onFault);
var t:AsyncToken = serviceResp.sendSomeProduct(product);
t.addResponder(r);
```
5.- Check `examples/amf` and `examples/mxroyale`
6.- Check docs here: https://apache.github.io/royale-docs/features/loading-external-data/remoteobject
I think @cristallium has a AMF PHP backend working so he probably can give you more advice here
HTH
----------------------------------------------------------------
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:
users@infra.apache.org