This document discusses options for retrieving remote data in Flex applications, including HTTPService, WebService, and RemoteObject. HTTPService and WebService allow retrieving data via HTTP requests but require text formats, while RemoteObject uses a binary format called Action Message Format that can improve performance but requires a server. The document provides code examples and details on declaring and calling each data service option.
1 of 9
More Related Content
Accessing remote data
1. Accessing Remote Data Flash Camp Chicago February 26th, 2010 Kevin Schmidt email: [email_address] twitter: @schmidtkevinall
2. What is Remote Data? RSS Feeds Blogs News etc Database data Web Services Stock quotes Weather etc
4. HTTPService <mx:HTTPService> id unique id to identify the HTTPService url url of service (.cfm,.php.aspx) resultFormat (e4x,xml,object) result function to handle on result fault function to handle errors
5. WebService <mx:WebService> id unique id to identify the WebSerice wsdl location of the wsdl file Fault function to handle errors <mx:operation> name name of the methiod to call result function to call on result
6. RemoteObject <mx:RemoteObject> Id unique id to identify the RemoteObject Destination destination of the service Endpoint URL of the gateway Source path to the service Fault function to handle errors <mx:method> Name name of the method in the service Result function to call on result
7. RemoteObject <mx:RemoteObject> Id unique id to identify the RemoteObject Destination destination of the service Endpoint URL of the gateway Source path to the service Fault function to handle errors <mx:method> Name name of the method in the service Result function to call on result
8. Pros and Cons HTTPService and WebService don't require anything extra - RemoteObject requires a server (CF, BlazeDS, ZendAMF, WebOrb) HTTPService and WebService use text formats RemoteObject uses binary format Action Message Format ( AMF ) Performance - Census Example ( James Ward ) http://www.jamesward.org/census/
9. Questions, Comments, Insults 際際滷s and Completed code at: http://www.flexinabox.com Feel free to email me any questions [email_address]