...
- Send a request using the
Stock Quote
client to WSO2 ESB in the following manner. For information about theStock Quote
client, refer to the section Sample Clients in the WSO2 ESB documentation.ant stockquote -Dtrpurl=http://localhost:8280/services/ContentBasedRoutingProxy -Dsymbol=foo
Info - When you send the request with
-Dsymbol=foo
, you view the following output printed in the Axis2 server console started in port 9000.samples.services.SimpleStockQuoteService :: Generating quote for : foo
- When you send the request with
-Dsymbol=bar
, you view the following output printed in the Axis2 server console started in port 9001.samples.services.SimpleStockQuoteService :: Generating quote for : foo
- When you send the request with
- After executing the above command through the client, observe that the request is transferred to the foo inventory service. If the
-Dsymbol
parameter is changed tobar,
the request will be transferred to the bar inventory service.The structure of the request is as follows:
Code Block language html/xml <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.samples" xmlns:xsd="http://services.samples/xsd"> <soapenv:Header/> <soapenv:Body> <ser:getQuote> <!--Optional:--> <ser:request> <!--Optional:--> <ser:symbol>foo</ser:symbol> </ser:request> </ser:getQuote> </soapenv:Body> </soapenv:Envelope>
...