<div dir="ltr" style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/05/messagecontext.jpg" border="0" /></div>
<p>A <i><b>SOAP </b></i>message is an ordinary <i><b>XML </b></i>document containing the following elements.</p>
<ul>
<li><b>Envelope:</b> ( Mandatory )<br />
Defines the start and the end of the message.</li>
<li><b>Header:</b> ( Optional )<br />
Contains any optional attributes of the message used in processing the message, either at an intermediary point or at the ultimate end point.</li>
<li><b>Body:</b> ( Mandatory )<br />
Contains the XML data comprising the message being sent.</li>
<li><b>Fault:</b> ( Optional )<br />
An optional Fault element that provides information about errors that occurred while processing the message</li>
</ul>
<div id="ads-id" align="center"></div>
<p>All these elements are declared in the default namespace for the SOAP envelope:<br />
<a href="http://www.w3.org/2001/12/soap-envelope" target="_blank" rel="noopener">http://www.w3.org/2001/12/soap-envelope</a><br />
and the default namespace for SOAP encoding and data types is:<br />
<a href="http://www.w3.org/2001/12/soap-encoding" target="_blank" rel="noopener">http://www.w3.org/2001/12/soap-encoding</a></p>
<p><b>NOTE:</b> All these specifications are subject to change. So keep updating yourself with the latest specifications available W3 website.</p>
<h2><b><br />
<i>Syntax Rules</i></b></h2>
<p>Here are some important syntax rules:</p>
<ul>
<li>A SOAP message MUST be encoded using XML</li>
<li>A SOAP message MUST use the SOAP Envelope namespace</li>
<li>A SOAP message MUST use the SOAP Encoding namespace</li>
<li>A SOAP message must NOT contain a DTD reference</li>
<li>A SOAP message must NOT contain XML Processing Instructions</li>
</ul>
<h2><b>A SOAP Message Structure-</b></h2>
<pre class="highlight"><;?xml version="1.0"?>; 
<;SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://www.w3.org/2001/12/soap-envelope" 
SOAP-ENV:encodingStyle="http://www.w3.org/2001/12/soap-encoding">; 
 
<;SOAP-ENV:Header>; 
 ... 
 ... 
<;/SOAP-ENV:Header>; 
 
<;SOAP-ENV:Body>; 
 
 ... 
 ... 
 <;SOAP-ENV:Fault>; 
 ... 
 ... 
 <;/SOAP-ENV:Fault>; 
<;/SOAP-ENV:Body>; 
 
<;/SOAP_ENV:Envelope>; 
</pre>
<p><i><b>References</b></i><br />
1. <i><b><a href="http://en.wikipedia.org/wiki/SOAP" target="_blank" rel="noopener">Wikipedia for SOAP</a></b></i></p>
<p> ;</p>
<div style="background-color: pink; border-width: thin; text-align: center;"><b><;<;<a href="https://dineshonjava.com/what-is-soap/">Previous</a> <;<; || <a href="https://dineshonjava.com/core-java-baby-step-to-be-best-java-ian/">Index </a>|| >;>;<a href="https://dineshonjava.com/soap-envelope-element/">Next</a> >;>;</b></div>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/what-is-uddi/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/web-service-introduction/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '447'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…