flexcursion

Explore the world of Flex 2.

Basically, Flex allows three types of RPC services: HttpService, WebServices, and RemoteObject Services. In Flex, using the “RemoteObjects specifies named or unnamed sources and connects to an Action Message Format (AMF) gateway, whereas using the HTTPService and WebService use named services or raw URLs and connect to an HTTP proxy using text-based query parameters or XML”. Specifically, HTTPServices use raw HTTP requests, WebServices use the SOAP protocol and RemoteObjects uses AMF3.

“RemoteObject provides two advantages over HTTP or SOAP. First, while the AMF protocol uses HTTP to transfer packets, the data is transferred in a binary format that is natively understood by the Flash Player. As a result, data can move across the network more quickly and it can be deserialized more rapidly than text-based formats such as XML. Both of these result in performance gains, particularly where large sets of data are involved. Secondly, RemoteObject provides signficant productivity advantages. The remoting service, which runs on your server, automatically marshalls data between AMF and your server-side language (e.g., PHP, Java, C#). As a result, you can directly call methods on your PHP objects without having to write an XML REST interface or create web service interfaces”.

So which one to choose? As far as I’m concerned, I use little data sets so receiving data over the HTTPService has been a cinch. If I ever have to go through a larger data sets, I’ve looked at AMFPHP and found version 1.9 was very good and easier to configure then others. Again, this will probably be something that I’ll have to further research.

Share 

Add a Comment

You need to be a member of flexcursion to add comments!

Join this social network

About

Juan Sanchez Juan Sanchez created this social network on Ning.

Create your own social network!

Badge

Loading…

© 2009   Created by Juan Sanchez on Ning.   Create Your Own Social Network

Badges  |  Report an Issue  |  Privacy  |  Terms of Service