Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation:
repository/samples/directory that includes all Integration profile samples is changed to
repository/samples/resources/directory that includes all artifacts related to the Integration profile samples is changed to
Objective: Demonstrate the use of the Callout mediator for synchronous web service invocations.
- Deploy the SimpleStockQuoteService in sample Axis2 server and start it on port 9000.
- Start Synapse with the sample configuration 430 (i.e. wso2ei-samples -sn 430).
In this sample, the Callout mediator does the direct service invocation to the StockQuoteService using the client request, gets the response, and sets the response as the first child of the SOAP message body. Then, using the Send mediator, the message is sent back to the client.
Invoke the client as follows.