Web Services

SOAP IN Web services

SOAP Tutorial

adplus-dvertising
Elements Of SOAP
Previous Home Next

Simple object Access ProtocolA major design goal for SOAP is simplicity and extensibility.SOAP was designed to be a simple message passing protocol. SOAP elements are envelope, header and body. Explaination of SOAP elements is as follows:

  • Envelope: Envelope is the root element of Simple Object Access Protocol.
  • Header: The header can contain custom tags. These tags read and acted when soap messages functions.
  • Body: The body element provides a mechanism for exchanging information. The body element contain an XML document or structured data.
  • Fault: Fault is an optional element that provides information about errors that occurred while processing the message.
Soap Message Structure
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.indo.org/soap-envelope"
SOAP-ENV:encodingStyle="http://www.indo.org/soap-
encoding">
<SOAP-ENV:Header>
  ...
  ...
</SOAP-ENV:Header>
<SOAP-ENV:Body>

  ...
  ...
  <SOAP-ENV:Fault>
    ...
    ...
  </SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP_ENV:Envelope>
Previous Home Next