Accessing Remote Data Flash Camp Chicago February 26th, 2010 Kevin Schmidt email:  [email_address] twitter: @schmidtkevinall
What is Remote Data? <ul><li>RSS Feeds </li></ul><ul><ul><li>Blogs </li></ul></ul><ul><ul><li>News </li></ul></ul><ul><ul>...
Options for Remote Data Retrieval <ul><li>HTTPService </li></ul><ul><li>WebService </li></ul><ul><li>RemoteObject </li></ul>
HTTPService <ul><li><mx:HTTPService> </li></ul><ul><ul><li>id – unique id to identify the HTTPService </li></ul></ul><ul><...
WebService <ul><li><mx:WebService> </li></ul><ul><ul><li>id – unique id to identify the WebSerice </li></ul></ul><ul><ul><...
RemoteObject <ul><li><mx:RemoteObject> </li></ul><ul><ul><li>Id – unique id to identify the RemoteObject </li></ul></ul><u...
RemoteObject <ul><li><mx:RemoteObject> </li></ul><ul><ul><li>Id – unique id to identify the RemoteObject </li></ul></ul><u...
Pros and Cons <ul><li>HTTPService and WebService don't require anything extra - RemoteObject requires a server (CF, BlazeD...
Questions, Comments, Insults <ul><li>Slides and Completed code at: </li></ul><ul><ul><li>http://www.flexinabox.com </li></...
Upcoming SlideShare
Loading in...5
×

Accessing remote data

1,080

Published on

Accessing remote data

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,080
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Accessing remote data"

  1. 1. Accessing Remote Data Flash Camp Chicago February 26th, 2010 Kevin Schmidt email: [email_address] twitter: @schmidtkevinall
  2. 2. What is Remote Data? <ul><li>RSS Feeds </li></ul><ul><ul><li>Blogs </li></ul></ul><ul><ul><li>News </li></ul></ul><ul><ul><li>etc </li></ul></ul><ul><li>Database data </li></ul><ul><li>Web Services </li></ul><ul><ul><li>Stock quotes </li></ul></ul><ul><ul><li>Weather </li></ul></ul><ul><ul><li>etc </li></ul></ul>
  3. 3. Options for Remote Data Retrieval <ul><li>HTTPService </li></ul><ul><li>WebService </li></ul><ul><li>RemoteObject </li></ul>
  4. 4. HTTPService <ul><li><mx:HTTPService> </li></ul><ul><ul><li>id – unique id to identify the HTTPService </li></ul></ul><ul><ul><li>url – url of service (.cfm,.php.aspx) </li></ul></ul><ul><ul><li>resultFormat – (e4x,xml,object) </li></ul></ul><ul><ul><li>result – function to handle on result </li></ul></ul><ul><ul><li>fault – function to handle errors </li></ul></ul>
  5. 5. WebService <ul><li><mx:WebService> </li></ul><ul><ul><li>id – unique id to identify the WebSerice </li></ul></ul><ul><ul><li>wsdl – location of the wsdl file </li></ul></ul><ul><ul><li>Fault – function to handle errors </li></ul></ul><ul><li><mx:operation> </li></ul><ul><ul><li>name – name of the methiod to call </li></ul></ul><ul><ul><li>result – function to call on result </li></ul></ul>
  6. 6. RemoteObject <ul><li><mx:RemoteObject> </li></ul><ul><ul><li>Id – unique id to identify the RemoteObject </li></ul></ul><ul><ul><li>Destination – destination of the service </li></ul></ul><ul><ul><li>Endpoint – URL of the gateway </li></ul></ul><ul><ul><li>Source – path to the service </li></ul></ul><ul><ul><li>Fault – function to handle errors </li></ul></ul><ul><li><mx:method> </li></ul><ul><ul><li>Name – name of the method in the service </li></ul></ul><ul><ul><li>Result – function to call on result </li></ul></ul>
  7. 7. RemoteObject <ul><li><mx:RemoteObject> </li></ul><ul><ul><li>Id – unique id to identify the RemoteObject </li></ul></ul><ul><ul><li>Destination – destination of the service </li></ul></ul><ul><ul><li>Endpoint – URL of the gateway </li></ul></ul><ul><ul><li>Source – path to the service </li></ul></ul><ul><ul><li>Fault – function to handle errors </li></ul></ul><ul><li><mx:method> </li></ul><ul><ul><li>Name – name of the method in the service </li></ul></ul><ul><ul><li>Result – function to call on result </li></ul></ul>
  8. 8. Pros and Cons <ul><li>HTTPService and WebService don't require anything extra - RemoteObject requires a server (CF, BlazeDS, ZendAMF, WebOrb) </li></ul><ul><li>HTTPService and WebService use text formats RemoteObject uses binary format Action Message Format ( AMF ) </li></ul><ul><li>Performance - Census Example ( James Ward ) </li></ul><ul><ul><li>http://www.jamesward.org/census/ </li></ul></ul>
  9. 9. Questions, Comments, Insults <ul><li>Slides and Completed code at: </li></ul><ul><ul><li>http://www.flexinabox.com </li></ul></ul><ul><li>Feel free to email me any questions </li></ul><ul><ul><li>[email_address] </li></ul></ul>

×