Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Send a request using the Stock Quote client to WSO2 ESB in the following manner. For information about the Stock 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
  2. 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 to bar, the request will be transferred to the bar inventory service.

    The structure of the request is as follows:

    Code Block
    languagehtml/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>

...