Part II: Exchanging Data
In this module, you will learn how to build several applications that retrieve shipping data in both XML and plain text format based on user-supplied information. To build this application you will use Flex Builder, pre-built Flex components, and the Flex HTTP service.
The resources in this module are organized in order from least detail to most detail, with the last section pointing you to additional resources. The content includes:
- Learning Points - A summary of information and concepts for building the applications
- Code Files - Complete code files for the samples
- Code Highlights - Some key code excerpts for the samples
- Code Anatomy - An interactive approach to understanding the shipping Costs code
- Tutorial - Step-by-step instructions on building the Shipping Costs applications
- More Information - Next steps and resources
|
rate-5701648-93853
| User rating? |
|
|
|
The Shipping Costs Application
In this module you will create two applications using HTTPService that retrieve two types of data:
- Plain text
- XML
You will retrieve both types of data from ColdFusion, PHP, Java and ASP.NET servers.
The plain text sample
The following application shows an embedded application created using Flex Builder. Type a 5-digit zip code, like 80401, and a shipping weight, like 3, into the text boxes and click the Get Shipping Options button to retrieve and display the plain text data in a text box.
The XML sample
The following application shows an embedded application created using Flex Builder. Type a 5-digit zip code, like 80401, and a shipping weight, like 3, into the text boxes and click the Get Shipping Options button to retrieve and display the XML data in a grid.