
40
Flex Builder Tutorials
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.
1.
In Flex Builder, open the flexstore.mxml file located in the fbBindings folder (not the
fbComponents folder).
2.
In the Data panel (Window > Data), click the Plus (+) button, and select Web Service from the
pop-up menu.
The Add Web Service dialog box appears.
3.
Select FlexStoreCatalogWS from the pop-up menu.
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 5
.
4.
Click OK.
The web service appears in the Data panel.
5.
Click the web service in the Data panel to select it and specify the value of the following property
in the Attributes panel:
■
Common > id
:
catalogWS
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.
Содержание FLEX-FLEX BUILDER
Страница 56: ...56 Flex Builder Tutorials...