Common workflow for the RDBMSResolver component

The following steps describe the typical workflow for the RDBMSResolver component.

To use an RDBMSResolver component:

  1. Confirm that your Publish Settings specify ActionScript 2.0
  2. Add two instances of the WebServiceConnector component and one instance of the DataSet and RDBMSResolver components to your application, and give them instance names.
  3. Select the first WebServiceConnector component. Then use the Parameters tab of the Component inspector to enter the Web Service Definition Language (WSDL) URL for a web service that exposes data from an external data source.

    NOTE

    The web service must return an array of records to be bound to the data set.

  4. Use the Bindings tab of the Component inspector to bind the first WebServiceConnector component's results property to the DataSet component's dataProvider property.
  5. Select the DataSet component, and use the Bindings tab of the Component inspector to bind data elements (DataSet fields) to the visual components in your application.
  6. Bind the DataSet's deltaPacket property to the RDBMSResolver's deltaPacket property.

    The update instructions are sent from the DataSet component to the RDBMSResolver component when the DataSet.applyUpdates() method is called.

  7. Bind the RDBMSResolver updatePacket property to the second WebServiceConnector params property to send data back to a method that parses the XML update packet. Set the kind of that params property to auto-trigger so that the connector sends the update packet as soon as data binding copies it over.
  8. Add a trigger to initiate the data binding operation: use the Trigger Data Source behavior attached to a button, or add ActionScript.

In addition to these steps, you can also use the RDBMSResolver component to create bindings to apply the result packet sent back from the server to the data set.

For a step-by-step example that resolves data to a relational database using the RDBMSResolver component, see the tutorials on DevNet at http://www.adobe.com/devnet/mx/flash/data_integration.html.