
a shipping weight, such as 3, into the text boxes and click the
Get Shipping Options button to retrieve and display the plain
text data in a text box (see Figure 5-4).
Figure 5-4. The text return version of the application
A
second version of the code will parse an XML response from
the server and put it into a data grid. This ends up looking like
Figure 5-5.
Stepping back from the user interface, let’s look at how the Flex
application communicates with the server. This interaction is
shown in Figure 5-6.
Figure 5-3. The alert that indicates a successful post
Using the HTTPService Tag | 71
Commenti su questo manuale