<div dir="ltr" style="text-align: justify;" trbidi="on"><b>A SOAP Example</b></p>
<p> In the example below, a <i><b>GetStockPrice </b></i>request is sent to a server. The request has a <b><i>StockName</i></b> parameter, and a <i><b>Price </b></i>parameter that will be returned in the response. The namespace for the function is defined in <i><b>&#8220;http://www.example.org/stock&#8221;</b></i>.</p>
<p><i><b>A SOAP request:</b></i></p>
<pre class="highlight" name="code">POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

<;?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 xmlns:m="http://www.example.org/stock">;
 <;m:GetStockPrice>;
 <;m:StockName>;IBM<;/m:StockName>;
 <;/m:GetStockPrice>;
<;/soap:Body>;

<;/soap:Envelope>; 
</pre>
<div align="center" id="ads-id"></div>
<p><i><b>The SOAP response:</b></i></p>
<pre class="highlight" name="code">HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn

<;?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 xmlns:m="http://www.example.org/stock">;
 <;m:GetStockPriceResponse>;
 <;m:Price>;34.5<;/m:Price>;
 <;/m:GetStockPriceResponse>;
<;/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-transport.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-example.html">Next</a> >;>;</b></div>
<p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/soap-transport/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/types-of-web-services/">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: '439'});
});
</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…