Invoking web services in parallel
In cases where the invocation of web services is not interdependent, we can invoke web services in parallel. The parallel invocation shortens the BPEL process execution time. In this recipe, we will show you how to invoke web services in parallel.
Getting ready
For this recipe we will consume two web services. We will check for the hotel room and car availability in parallel. The availability data will give us information on hotels, where the rooms are available, and a car that is available for the date range. In order to complete the recipe, we need to deploy BookHotelService
and BookCarService
. The procedure for deploying web services can be taken from the Implementing web services with Axis2 recipe.
How to do it…
The following steps will cover the necessary activities to design the BPEL process for the parallel web service invocation:
We start by creating the SOA composite. We add two web service references and wire them to the BPEL process as shown in the...