Example 1- Calling an Inbound Web Service Operation Using SOAP/HTTP

This section describes:

Aims of the Example
Looking at the getNodeName_SOAP Process
How to Run the Example

Aims of the Example

The aim of this example is for BusinessWorks to call an inbound Web Service using SOAP/HTTP as the transport. Specifically, it does the following:

1. The BusinessWorks Process getNodeName_SOAP sends a SOAP request message over HTTP to the TIBCO iProcess Engine.
2. The inbound message from BusinessWorks calls the iProcess web service operation getNodeName.
3. The operation returns the result of the getNodeName operation to BusinessWorks by sending a SOAP message over HTTP.
4. The node name is displayed in the console log file.

Looking at the getNodeName_SOAP Process

  1. Start BusinessWorks Designer and open the getNodeName_SOAP process:

  1. The SOAP Request Reply activity performs a request (getNodeName) on the specified Web Service and expects a reply from the Web Service. The Configuration tab is set up as follows:

Note 

If you are running Jetty on different machine, you need to edit the WebiPE WSDL to specify the correct endpoint, then restart TIBCO Designer.

  1. The Input tab is configured as follows:

  1. The Log activity writes the result of the request from the SOAP Request Reply activity to the log of the process engine that is running the BusinessWorks process. The actual string is:

   concat("Result of getNodeName: ",    $SOAPRequestReply/getNodeNameResponse/getNodeNameReturn)

It is configured as follows:

How to Run the Example

To run this example, do the following:

  1. Start TIBCO Designer.

  2. Start Jetty.

  3. On the Project Panel, select the Tester tab.

  4. Press F9 to display the Select Processes to Load dialog.

  5. Select getNodeName_SOAP and click Load Selected:

  1. Select Windows > Show Console to view the Console Log to verify that the getNodeName operation has performed correctly. If it has performed correctly, the log should contain lines similar to the following:

2007 Jul 02 11:58:44:020 GMT +1 BW.WebServices_Examples Info [BW-Core] BWENGINE-300002 Engine WebServices_Examples started 
2007 Jul 02 11:58:46:020 GMT +1 BW.WebServices_Examples User [BW-User] - Job-32000 [DEMO/getNodeName_SOAP.process/Log]: Result of getNodeName: staffw_nod1