Sample SOAP message over an HTTP request.

Java To Go!
SOAP-enabling business-to-business EJB

E-Ming Tan
Listing 1. Sample SOAP message over an HTTP request.


POST /StockQuote HTTP/1.1
Host: www.stockquoteserver.com
Content-Type: text/xml; charset=”utf-8”
Content-Length: nnnn
SOAPAction: “Some-URI”

<SOAP-ENV:Envelope
      xmlns:SOAP-ENV=”http://schemas.xmlSOAP.org/SOAP/
                                             envelope/”
      SOAP-ENV:encodingStyle=”http://schemas.xmlSOAP.org/SOAP/
                                             encoding/”/>
    <SOAP-ENV:Body>
     <m:GetLastTradePrice
     xmlns:m=”Some-URI”>
       <SymbolDEF</Symbol>
       <CompanyDEF Corp</Company>
       <Price34.1</Price>
     </m:GetLastTradePrice>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Featured

Most   Popular
Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.