際際滷

際際滷Share a Scribd company logo
Accessing Remote Data Flash Camp Chicago February 26th, 2010 Kevin Schmidt email:  [email_address] twitter: @schmidtkevinall
What is Remote Data? RSS Feeds Blogs News etc Database data Web Services Stock quotes Weather etc
Options for Remote Data Retrieval HTTPService WebService RemoteObject
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
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
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
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
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/
Questions, Comments, Insults 際際滷s and Completed code at: http://www.flexinabox.com Feel free to email me any questions [email_address]

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
  • 3. Options for Remote Data Retrieval HTTPService WebService RemoteObject
  • 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]