Invoking an Asynchronous Web Service



As discussed before Asynchronous Web Service is one which sends a request to other web service and waits for the response.

In the screenshot shown below, we have created the Asynchronous BPEL Process which has a receive activity to accept the request from the user. The assign activity further assigns values to the different elements in the request.

Next, the invoke activity invokes the HelloWorld Application which sends the response simultaneously and that is captured in receive activity.

Further, we have the callback activity which finally generates output and sends response asynchronously.

If you double-click the receiveInput or callbackClient, you will see each of them has only one variable.

receiveInput → inputVariable
callbackClient → outputVariable 

Invoking an Asynchronous Web Service
Advertisements