Using Service Callout action to invoke a service
In this recipe, we will use a Service Callout action to call another service from a proxy service message flow.
We will use the sample setup from the first chapter of this book and add an additional service call to another service Credit Card Info Service, which returns the credit card information. The service call will be done using the Service Callout action. Both the information from the Credit Card Info Service and from the Customer Service will then be merged by the XQuery transformation into one single response returned by the proxy service.
Getting ready
You can import the OSB project containing the base setup for this recipe into Eclipse OEPE from \chapter-9\getting-ready\using-service-callout
.
Start the soapUI mock services simulating the two external services on the CRM system by double-clicking on start-CreditCardInfoServiceCRM.cmd
and start-CustomerServiceCRM.cmd
in the \chapter-9\getting-ready\misc
folder.
How to do it...
First, we...