Using Web Services

Web Services can be invoked:  

A specific graphical interface exists to help you create Web Service requests.

Graphical interface for Web Services

The graphical interface for Web Services appears as shown below:

Basic properties

The basic properties are:

In the Options tab, the HTTP requests options appear:

Toolbar

The toolbar provides the following features:

SOAP Editor

The SOAP Editor allows you to graphically build the SOAP request for the Web Service and display the response.

If creating a SnpsInvokeWebService step, this SOAP request filled in the editor is saved with the step.

The upper part of the editor shows the hierarchical structure of the query, the lower part shows the structure of the response. This arrangement can be changed using the Switch Panel Position button.
The raw XML source of the SOAP request and response are shown on the Source tab.

In the editor, you can fill in the Value (and optionally the Attributes) for each element of your request.

Warning: An empty element is passed as is to the Web service. For strings, this corresponds to an empty string. For numbers or date types, this may cause an error to occur. If you want to send a null string, number or date, it is recommended to use the nil="true" attribute.
To remove empty elements, use the Delete Empty Optional Components option.

Optional elements are displayed in italic. Repeatable elements are labelled with ...(n*) after the name.

Right-click any element to perform one of the following operations, if possible:

Results

This part of the interface appears only when using a SnpsInvokeWebService step in a package, to control how the response is written to a XML file.

See SnpsInvokeWebService for more information on these parameters.

Note: The result file parameters are only taken into account at run-time. No result file is generated when using the Invoke Web Service button.

Invoking a Web Service

To create a Web Service request:

  1. Create a SnpsInvokeWebService tool step in a package, or right-click a datastore and select Test Web Service in the popup menu.

  2. Fill in the location of the WSDL. You can use either:

  3. Choose a Port, if more than one is available. If no ports are available, there is a problem with the WSDL.

  4. Choose an Operation from the list on the left.

  5. Fill in request in the SOAP Editor. You can also use an external request file instead.

  6. (Optional)  Click the Delete empty optional elements button to remove optional elements which have not been filled in. Some Web Services treat blank elements as invalid.

  7. Click the Invoke Web Service button to immediately invoke the Web Service.
    The response is shown in the SOAP Editor.

  8. If you are creating a SnpsInvokeWebService tool step, define the result file parameters then click Apply to save your step.

Processing a Web Service Response

When using SnpsInvokeWebService to call a web service, the response is written to an XML file.

Processing this file can be done with Oracle Data Integrator, using the following guidelines:

Note: Each XML file is defined as a model in Oracle Data Integrator. It is recommended to use model folders to arrange them. See Organizing Models into Model Folders for more information.