Accessing Server Side data using Flex 2.0 Sudha Hariharan
Features <ul><li>For handling server side data, Flex provides 3 key features: </li></ul><ul><li>RPC services </li></ul><ul...
RPC Services <ul><li>Provides a call and response model for accessing data. </li></ul><ul><li>Used to create application t...
RPC Services -2
RPC Services -3 <ul><li>The Client Side RPC components can be one of the following: </li></ul><ul><li>HTTP Service : Can b...
RPC Services –with Flex 2 SDK only <ul><li>Used to create non-enterprise application that call HTTP services or WebService...
RPC Services- crossdomain.xml <ul><li>Indicated that its data and documents are available to SWF files served from certain...
RPC Services with Flex Data Services <ul><li>Used to provide many a enterprise functionality. </li></ul><ul><li>Allows Rem...
Data Management Services <ul><li>Useful for </li></ul><ul><li>Data synchronization between application tiers </li></ul><ul...
Data Management Services -2 <ul><li>A client side data Service component, which you can create in MXML or ActionScript, ca...
Messaging services <ul><li>Used in </li></ul><ul><li>Collaborative and real-time applications. </li></ul><ul><li>Applicati...
Messaging Services -2 <ul><li>Components sending messages called  Producers. </li></ul><ul><li>Components receiving messag...
References <ul><li>Adobe Flex Livedocs </li></ul><ul><li>http:// livedocs .adobe.com/flex/201/html/ wwhelp / wwhimpl / js ...
Upcoming SlideShare
Loading in...5
×

Accessing Server Side Data Using Flex 2.

3,054

Published on

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

  • Be the first to like this

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

No notes for slide

Accessing Server Side Data Using Flex 2.

  1. 1. Accessing Server Side data using Flex 2.0 Sudha Hariharan
  2. 2. Features <ul><li>For handling server side data, Flex provides 3 key features: </li></ul><ul><li>RPC services </li></ul><ul><li>Data Management Services </li></ul><ul><li>Messaging Service. </li></ul>
  3. 3. RPC Services <ul><li>Provides a call and response model for accessing data. </li></ul><ul><li>Used to create application that make asynchronous request to remote services. </li></ul><ul><li>Limited features with Flex 2 SDK- can only call services directly. </li></ul><ul><li>Cannot use server side features without Flex Data services. </li></ul>
  4. 4. RPC Services -2
  5. 5. RPC Services -3 <ul><li>The Client Side RPC components can be one of the following: </li></ul><ul><li>HTTP Service : Can be an HTTP POST or GET. </li></ul><ul><li>WebService: Can be any SOAP compliant web service </li></ul><ul><li>Remote Object Component: Examples include Java object in a Java Web Application. </li></ul>
  6. 6. RPC Services –with Flex 2 SDK only <ul><li>Used to create non-enterprise application that call HTTP services or WebServices directly without going through a server side proxy service. </li></ul><ul><li>Cannot use Remote Object Components. </li></ul><ul><li>RPC service must be on the server hosting the application. </li></ul><ul><li>Second option is that the RPC Service must define a crossdomain.xml file. </li></ul>
  7. 7. RPC Services- crossdomain.xml <ul><li>Indicated that its data and documents are available to SWF files served from certain domains or all domains. </li></ul><ul><li>Must be present in the webroot of the server that the Flex application in contacting. </li></ul>
  8. 8. RPC Services with Flex Data Services <ul><li>Used to provide many a enterprise functionality. </li></ul><ul><li>Allows Remote Object components without configuring them as SOAP- complaint web services. </li></ul><ul><li>RPC components contact destinations instead of server. </li></ul>
  9. 9. Data Management Services <ul><li>Useful for </li></ul><ul><li>Data synchronization between application tiers </li></ul><ul><li>Real time data updates </li></ul><ul><li>Data replication </li></ul><ul><li>Occasionally connected application services. </li></ul><ul><li>Integration through adapters with data sources. </li></ul><ul><li>Distributed and large nested data. </li></ul>
  10. 10. Data Management Services -2 <ul><li>A client side data Service component, which you can create in MXML or ActionScript, calls methods on Server side Data Management Service destination to perform such activities as filling client side data collections with data from remote data sources and synchronizing the client and server versions of the data. </li></ul>
  11. 11. Messaging services <ul><li>Used in </li></ul><ul><li>Collaborative and real-time applications. </li></ul><ul><li>Applications that create, send and receive messages from other applications. </li></ul>
  12. 12. Messaging Services -2 <ul><li>Components sending messages called Producers. </li></ul><ul><li>Components receiving messages, called Consumers. </li></ul><ul><li>Messages are sent over transport channels. </li></ul><ul><li>Transport channels- protocols such as Real Time Message Protocol (RTMP) or Action Message Format (AMF). </li></ul><ul><li>Messaging Clients may be Flex applications or other types of Applications (Ex: Java Message Service Applications). </li></ul>
  13. 13. References <ul><li>Adobe Flex Livedocs </li></ul><ul><li>http:// livedocs .adobe.com/flex/201/html/ wwhelp / wwhimpl / js /html/ wwhelp . htm ? href =Part2_ DevApps _048_1.html </li></ul>

×