Monday 4 April 2016

TIBCO BW6.x: Working with Context Resource

Configuring context resource with TIBCO BW Web Services is a bit tricky. When it comes to TIBCO BW6, it is even more tricky than BW5.

In order to configure a Web Service having Context resource in TIBCO BW6, following steps needs to be executed.

1.    Create BW6 project module in Eclipse.
2.    Create schemes  corresponding to the webservice request & response, and for the context as shown in the figure
Fig-1
3.   Create an abstract WSDL using the webservice schema. 
4.   Using the abstract WSDL create an Interface of the process as shown in the following diagram.
Fig-2
5.     Click on the Interface name (e.g. EmpServices), and select the "context" tab within "Properties" tab.
6.     Add the input and output context parameters using the buttons as shown in the figure.
7.      Configure activities GetContext(when input context parameter is used) and SetContext( when ouput context parameter is used). e.g 
8.      Open Module Descriptors-->Components. Select the component, and go to Bindings tab in the Properties tab. Then click on the Add Binding button.

9.      Select "SOAP Binding", and click on Finish.
10.    Set the Transport Configuration to JMS/HTTP, and configure it properly.

11.     Map the input and the output context as per requirement. as shown below. 
12.     Start BW6 application in from Eclipse in bebugger mode and test the service.
13.     Generate the Concrete WSDL for the client application as below.


For reference, you may download the project here.


**Please feel free to ask/suggest as comment.


No comments:

Post a Comment