Using Flex Builder to Create Web Service–Based Flex Applications
As a robust application framework with powerful runtime services, Macromedia Flex helps you create data-centric enterprise applications that provide rich user experiences. The services-oriented architecture in Flex provides access to enterprise data through web services or HTTP, or as a remote procedure call (RPC) to Java objects.
In this article, I'll show you how to use Macromedia Flex Builder to create and test a simple Flex application that consumes web services.
Requirements
To complete this tutorial you will need to install the following software and files:
Macromedia Flex (with the samples server)
A text editor or Macromedia Flex Builder
Sample files:
This ZIP archive contains the following files:
- FlexBuilderWebService_start.mxml (MXML, 2K): This is the file you will complete by following the steps in this article. Place the file at the root of your Flex samples server.
- FlexBuilderWebService_finish.mxml (MXML, 2K): This is the solution file for this article. Place it at the root of your Flex samples server as a reference.
Setting Up the Sample Application
To set up the sample application, use the following steps.
- Place FlexBuilderWebService_start.mxml and FlexBuilderWebService_finish.mxml at the root of your Flex sample server. For more information on these files, see the Requirements section.
- Create a site for your samples server in Flex Builder and open FlexBuilderWebService_start.mxml.
Note: Refer to the Flex Builder documentation or LiveDocs, the online documentation for Flex Builder, for site setup instruction.
About the author
Larry McLister started at Macromedia seven years ago and currently is the quality
assurance manager on the Flex Builder development team. Before joining the Flex
Builder team, he worked on the Macromedia UltraDev and Dreamweaver quality assurance
team through the Macromedia MX release, focusing on Macromedia ColdFusion and
Flash integration. Prior to that he provided support for Authorware, Flash, Generator,
UltraDev, and Dreamweaver.