Sample SOAP message returned as an HTTP response.

Java To Go!
SOAP-enabling business-to-business EJB
E-Ming Tan
Listing 2. Sample SOAP message returned as an HTTP response.


HTTP/1.1 200 OK
Content-Type: text/xml; charset=”utf-8”
Content-Length: nnnn

<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:GetLastTradePriceResponse
     xmlns:m=”Some-URI”>
      <PriceAndVolume>
        <LastTradePrice>
	        34.5
	     </LastTradePrice>
	      <DayVolume>
	        10000
	     </DayVolume>
	    </PriceAndVolume>
	  </m:GetLastTradePriceResponse>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</FONT></CODE></PRE>

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.