Consuming Web Service in TibcoBW Process

In this article, I will brief on how to consume web services in TibcoBW. In the project view, lets add resource to consume WSDL as shown below, make sure to explicitly add the service schema to the project and re-map the Input and Output messages in the port type which is as part of WSDL.
Right Click on the project Folder, Choose WSDL and then WSDL. In the WSDL, provide the service url and click Copu From URL.
We would build a Tibco BW using file poller, to receive a booking request and then call process is used to invoke the actually booking service as shown below.
In child process, that would call booking service. Both Start and End Activity is mapped to BookRequest Schema and Booking Service Response Schema respectively as shown below,
using SOAPRequestReply Activity, we would invoke the service and its configuration and service request transformation is shown. Here cab booking service is invoked.
Lets test the project. Load both Main and Child Process.
As we see, booking request got process and original request is passed on to the child process and in the child process, after service transformation, service is invoked and the response in render to the main process.

Now, lets develop another process to invoke hotel booking service using child process and main process would dynamically invoke either cab or hotel booking child process. As both the service responses vary, lets generalize the output of each process as shown below.
Below screen shot, shows the service response mapping to generalized schema for both cab and hotel booking.
Test the project by placing a Cab and Hotel booking requests. Alternate approach to dynamic call process is shown below, here both cab and hotel booking flow are defined using filter conditions as shown below.
Run and test project. Screen shot shown the flow path for cab and hotel requests.
The video demonstration is available on the Youtube, here is the embedded video.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.