This documentation is for WSO2 Enterprise Service Bus version 4.7.0 . View documentation for the latest release.
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Objective: POX to SOAP conversion

<definitions xmlns="">
    <!-- filtering of messages with XPath and regex matches -->
    <filter source="get-property('To')" regex=".*/StockQuote.*">
                <address uri="http://localhost:9000/services/SimpleStockQuoteService" format="soap11"/>


  • Start the Synapse configuration numbered 50: i.e. -sn 50
  • Start the Axis2 server and deploy the SimpleStockQuoteService if not already done.

Execute the 'ant stockquote' specifying that the request should be a REST request as follows:

ant stockquote -Dtrpurl=http://localhost:8280/services/StockQuote -Drest=true

This example shows a http REST request (as shown below) being transformed into a SOAP request and forwarded to the stock quote service.

POST /services/StockQuote HTTP/1.1
Content-Type: application/xml; charset=UTF-8;action="urn:getQuote";
SOAPAction: urn:getQuote
User-Agent: Axis2
Transfer-Encoding: chunked

<m0:getQuote xmlns:m0="http://services.samples/xsd">
  • No labels