...

Networking - SOAP

Back to Course

Lesson Description


Lession - #1368 SOAP BODY


The SOAP frame is a mandatory detail that consists of the software-defined XML records being exchanged inside the soap message. The body have to be contained within the envelope and need to comply with any headers that is probably described for the message. The frame is described as a infant detail of the envelope, and the semantics for the body are described within the associated soap schema.
The body contains mandatory information intended for the ultimate receiver of the message. For example −

<?xml version = "1.0"?>
<SOAP-ENV:Envelope>
   ........
   <SOAP-ENV:Body>
      <m:GetQuotation xmlns:m  >
         <m:Item>Computers</m:Item>
      </m:GetQuotation>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The example above requests a quotation of pc units. Observe that the m:GetQuotation and the item elements above are utility-particular elements. They are no longer part of the cleaning soap widespread. Right here is the reaction to the above query −

<?xml version = "1.0"?>
<SOAP-ENV:Envelope>
   ........
   <SOAP-ENV:Body>
      <m:GetQuotationResponse xmlns:m  >
         <m:Quotation>This is Qutation</m:Quotation>
      </m:GetQuotationResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Normally, the utility also defines a schema to contain semantics associated with the request and reaction elements. The citation carrier is probably implemented using an EJB running in an application server; if so, the cleaning soap processor would be chargeable for mapping the body information as parameters into and out of the EJB implementation of the GetQuotationResponse service. The cleaning soap processor may also be mapping the body statistics to a .Internet item, a CORBA item, a COBOL application, and so on.