Part II: Exchanging Data
Subtopics:
- Learning Points - A summary of information and concepts for building the applications
- Code Files - Complete code files 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
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.
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.
|
rate-5701648-93853
| User rating? |
|
|
|
Try two versions of the running Shipping Costs Application
The rest of this page features two running versions of the Shipping Costs application. Try them out; they are not screen shots.
The plain text sample application
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 application
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.
The plain text sample application gives an error: "Security error accessing URL"