Invoking the synchronous web service
The BPEL process acts as an orchestration component of SOA. One of its fundamental abilities is to invoke web services. This recipe describes how to invoke the synchronous web service.
Getting ready
Before we start with the recipe, we need access to the synchronous web service. We will use the weather service from the Invoking the RESTful web services recipe.
How to do it…
The following steps describe the actions necessary in order to design the BPEL process for invoking the synchronous web service:
We start the recipe by modeling the SOA composite. We add the web service to the SOA composite, and it should look like the following screenshot:
In the BPEL process, we first assign the parameters for the web service. Next, we invoke the web service with the
<invoke>
activity as follows:<invoke name = "CallWeather" partnerLink = "WeatherSvcs" portType = "ns2:WeatherPT" operation = "QueryWeather" inputVariable = "CallWeather_QueryWeather_InputVariable"...