MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 275

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

To use the WebServiceConnector component, you need to load the web service's schema into the
WebServiceConnector component. A web service's schema is defined by a Web Service
Description Language (WSDL) file. The WSDL file, which is accessible through a URL, specifies
a list of operations, parameters, and results that are exposed by the web service. Once the schema
is loaded, you can proceed to add data bindings.
You can load and view the schema of any web service by entering the URL into the
parameter of a WebServiceConnector component instance.
The following example demonstrates how to load and view the schema for a web service that
provides helpful tips for different products. You add a WebServiceConnector component
instance on the Stage, specify the web service to use, and view the web service's schema on the
Schema tab of the Component inspector.
Note: This example requires an active Internet connection because it uses a public web service. If you
use a web service in your application, the web service must be located in the same domain as the
SWF file for your application so the application can work in a web browser. For more information, see
"About data connectivity and security in Flash Player" on page
Drag a WebServiceConnector component to the Stage and name it
1.
In the Component inspector, click the Parameters tab, if not already selected.
2.
Select the
3.
WSDLURL
http://www.flash-mx.com/mm/tips/tips.cfc?WSDL
When you specify a web service for a WebServiceConnector component in this way, it is
automatically added to the Web Services panel and is available to any application you create.
Select Operation, and select the
4.
Click the Schema tab and view the auto-generated schema for the web service:
5.
parameter, and type the following URL:
getTipByProduct
279.
tipsWSC
method.
Data connectivity (Flash Professional only)
WSDLURL
.
275

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents