Invoking web services in a sequence
In this recipe, we will identify how to call web services in a sequence from the BPEL process. The sequential web service invocation presents one of the basic workflow concepts. We use this approach when we have several web services in our business process and each of them needs to wait for the previous one to finish.
Getting ready
We need to set up an environment where we can access multiple web services. Since the BPEL processes are also exposed as web services, we can also call another BPEL process in a sequence.
How to do it…
The following steps explain how to call a web service in a sequence from the BPEL process:
We will start with the creation of an empty BPEL process. We can choose the synchronous or asynchronous BPEL process. We start by adding the web services references to the SOA composite. We add the following two web service references:
BookHotelSvc
: This web reference helps to gather the hotel names that have available rooms in a selected period...