Oracle Process Cloud Service Connectors (Part 1 of 2): Web Service Connector
By Antonis Antoniou
Oracle Process Cloud Service applications can communicate and exchange data with external applications that are exposed as either REST or Web Services.
In this first part of a two part series on connectors we will explore the Web Service Connector in Oracle Process Cloud Service to exchange data with an external application using the SOAP protocol.
To create a Web Service (SOAP) connection in Oracle Process Cloud Service, you need the following information:
- WSDL file (upload from file or remove via URL)
- The WSDL file should include a port type and a callback port type
- If the service you are trying to invoke is secure, then you will need the username and password required to access the service
Next we will create a process to hold the two human tasks and the service call. So from the “Create a Process” screen, select the “Start with a form” pattern, give your process a name and click on “Create”.
In the web form designer, drag and drop on the form canvas two text fields. Name the first one “IP Address” and the second one “Country” and ensure the “Country” text field is disabled (by unchecking the “Enabled” property).
In the third wizard screen you can configure some advanced properties like the “Read Time Out”, “Connection Time Out” and “Security”. I will leave the default and click “Create”.
Next we need to associate all required data for the service call, both for the request as well as the response. So with the service component selected, click on the “Associate the data” button and assign your form’s IP Address element to the ipAddress request element and assign your service’s response countryName element to your form’s country element and click “Apply”.
Drag a “Submit” component (Human Task) next to your service component, rename the “Submit” component to “View Service Result” and from its implementation details ensure you selected the same web form you created for the “Start” component.
This will bring up your web form. Enter your IP address and click on the submit button.