Oracle Data Integrator Run-Time Services

Working with Web Services in Oracle Data Integrator 15-7 ■ XML Charset -RESPONSE_XML_ENCODING: The name of the character encoding to write into the XML file. ■ Java Charset -RESPONSE_FILE_CHARSET: The name of the character encoding used when writing the file. Refer to Section A.5.22, OdiInvokeWebService for more information on these parameters.

15.4.3 Web Service Invocation in Integration Flows

Calling a Web Service using the OdiInvokeWebService tool To call a Web Service:

1. Create an OdiInvokeWebService tool step in a package, or right-click a datastore

and select Test Web Service in the contextual menu. 2. Fill in the location of the WSDL. You can use either: ■ A URL for a WSDL that has been deployed to a server for example: http:host:8080servicesWSCustomer?wsdl ■ A local file location for example: c:DataServicesWSCustomer.wsdl

3. Choose a Port, if more than one is available.

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

5. In the SOAP Editor, enter the web service payload. The OdiInvokeWebService tool

supports two web service request formats: the XML body of the SOAP request only or the full-formed SOAP envelope, including the SOAP header and body.

6. Optional Click Remove blank optional elements to delete optional request

parameters which have not been specified. Some Web Services treat blank elements as invalid.

7. Click Invoke Web Service to immediately invoke the Web Service. The response is

shown in right pane of the SOAP Editor. 8. If you are creating an OdiInvokeWebService tool step, define the response file parameters. Note: The result file parameters are only taken into account at run-time. No result file is generated when clicking Invoke Web Service . Note: Input format request and output format response are independant. Oracle Data Integrator recognizes the input message format automatically and writes the response according to the RESPONSE_FILE_FORMAT default is XML. However, in the Advanced editor the request file format determines the response file format. If you test the invocation using a XML payload message, the response will be XML payload. If you test using a full-formed SOAP message, the response will be a full-formed SOAP message. How to generate a web service request file with Oracle Data Integrator is covered in Generating the Request File .