
205
18
CHAPTER 18
Use Web Services
To provide data to your application, Adobe Flex includes components designed specifically for
interacting with web services, HTTP servers, or remote object services (Java objects). These
components are called remote procedure call (RPC) service components.
In this lesson, you create a simple reporting application for a blog aggregator that lists the
most popular posts in the last 30 days. You decide to let the users determine the number of
posts to list. You use an RPC service component called WebService to submit the user’s
selection and retrieve the data from a SOAP-based web service provided by the blog
aggregator site, and then you display the data in a DataGrid control.
In this lesson, you’ll complete the following tasks:
Set up your project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Review your access to remote data sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Review the API documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Insert and position controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207
Insert a WebService component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Populate the DataGrid component. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Create a dynamic link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Commentaires sur ces manuels