Common workflow for the WebServiceConnector component

The following procedure shows the typical workflow for the WebServiceConnector component.

To use a WebServiceConnector component:

  1. Confirm that your Publish Settings specify ActionScript 2.0.
  2. Use the Web Services panel to enter the URL for a web service WSDL file.
  3. Add a call to a method of the web service by selecting the method, right-clicking (Windows) or Control-clicking (Macintosh), and selecting Add Method Call from the context menu.

    This creates a WebServiceConnector component instance in your application. The schema for the component can then be found on the Schema tab of the Component inspector. You are free to edit this schema as needed--for example, to provide additional formatting or validation settings.

    NOTE

    The schema for the params and results component properties is updated each time you change the WSDLURL or operation parameter. This overwrites any settings that you have edited.

  4. Use the Bindings tab in the Component inspector to bind the web service parameters and results that are now defined in your schema to UI components in your application.
  5. Add a trigger to initiate the data binding operation in one of the following ways:
    • Attach the Trigger Data Source behavior to a button.
    • Add your own ActionScript to call the trigger() method on the WebServiceConnector component.
    • Create a binding between a web service parameter and a UI control, and set its Kind property to AutoTrigger.

For a step-by-step example that connects and displays a web service using the WebServiceConnector component, see "Data Integration: Using the Adobe Tips Web Service".