Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • Run the following command from the <ESB_HOME>/samples/axis2Client directory, specifying that the request should be a REST request.

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

Analyzing the output

The request sent by the client is as follows:

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

75
<m0:getQuote xmlns:m0="http://services.samples/xsd">
   <m0:request>
      <m0:symbol>IBM</m0:symbol>
   </m0:request>
</m0:getQuote>0

It is an a HTTP REST request, which will be transformed into a SOAP request and forwarded to the stock quote service.

 

Excerpt
hiddentrue

sample on POX to SOAP conversion