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 basic functions of the URL Rewrite Mediator.
- Deploy the SimpleStockQuoteService in sample Axis2 server and start it on port 9000.
- Create the above configuration and deploy it in the WSO2 EI profile, see Working with WSO2 Integration Studio.
Invoke the client as follows.
Note that the address URL of the client request contains the context 'soap'. But in the Axis2 server all the services are deployed under a context named 'services' by default. ESB will rewrite the To header of the request by replacing the 'soap' context with 'services. Hence the request will be delivered to the Axis2 server and the Axis2 client will receive a valid response.