<div dir="ltr" style="text-align: justify;" trbidi="on">
<div class="intro">The SOAP Body element contains the actual SOAP message.</div>
<p><b><br />
The SOAP Body Element</b><br />
The required SOAP Body element contains the actual SOAP message intended for the ultimate endpoint of the message. <br />
Immediate child elements of the SOAP Body element may be namespace-qualified.<br />
<b><br />
Example</b></p>
<pre class="highlight" name="code"><;?xml version="1.0"?>;
<;soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">;

<;soap:Body>;
 <;m:GetPrice xmlns:m="http://www.w3schools.com/prices">;
 <;m:Item>;Apples<;/m:Item>;
 <;/m:GetPrice>;
<;/soap:Body>;

<;/soap:Envelope>; 
</pre>
<div align='center' id="ads-id"></div>
<p>The example above requests the price of apples. Note that the m:GetPrice and the Item elements above are application-specific elements. They are not a part of the SOAP namespace.</p>
<p> A SOAP response could look something like this:</p>
<pre class="highlight" name="code"><;?xml version="1.0"?>;
<;soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">;

<;soap:Body>;
 <;m:GetPriceResponse xmlns:m="http://www.w3schools.com/prices">;
 <;m:Price>;1.90<;/m:Price>;
 <;/m:GetPriceResponse>;
<;/soap:Body>;

<;/soap:Envelope>; 
</pre>
<p><i><b>References</b></i><br />
1. <i><b><a href="http://en.wikipedia.org/wiki/SOAP" target="_blank">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/2013/05/soap-header-element.html">Previous</a> <;<; ; ; || <a href="https://dineshonjava.com/2013/01/core-java-baby-step-to-be-best-java-ian.html">Index </a>||  ; >;>;<a href="https://dineshonjava.com/2013/05/soap-fault-element.html">Next</a> >;>;</b></div>
<p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/soap-header-element/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/soap-fault-element/">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: '443'});
});
</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…