Specify The Web Service To Use - MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Use Manual

Table of Contents

Advertisement

Specify the web service to use

The source of the Flex Store product data is a web service that returns an array containing the
data.
In Flex Builder, open the flexstore.mxml file located in the fbBindings folder (not the
1.
fbComponents folder).
In the Data panel (Window > Data), click the Plus (+) button, and select Web Service from the
2.
pop-up menu.
The Add Web Service dialog box appears.
Select FlexStoreCatalogWS from the pop-up menu.
3.
A web service with this name is mapped in the whitelist for the Flex server samples (/samples/
WEB-INF/flex/flex-config.xml).
Note: If you get an error message that says the WSDL fetch failed, make sure the Flex server is
running. Also make sure you entered the correct values for the local and the Flex server root
folders. The values must be exactly the same as those described in the site setup tutorial. See
"Define a Flex Builder site" on page
Click OK.
4.
The web service appears in the Data panel.
Click the web service in the Data panel to select it and specify the value of the following property
5.
in the Attributes panel:
Common > id
Note: The angle bracket means the ID property is located in the Common category of the
Attributes tab. This convention is used throughout the tutorials.
25.
: catalogWS
Tutorial: Binding components to data with Flex Builder
59

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX BUILDER-USING FLEX BUILDER and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex builder

Table of Contents