<div dir="ltr" style="text-align: justify;">
<p>Following is the <b><i>WSDL </i></b>file that is provided to demonstrate a simple <b><i>WSDL </i></b>program.</p>
<p>Assuming the <b>service </b>provides a single publicly available function, called <b><i>sayHelloWorld</i></b>. This function expects a single string parameter and returns a single string greeting. For example if you pass the parameter world then service function <i><b>sayHelloWorld </b></i>returns the greeting, &#8220;<b>Hello, world!! Dinesh on Java</b>&#8220;.</p>
<h2><b>Web Service Name : <i>HelloWorldService</i></b></h2>
<p><b>This <i>WSDL </i>example contains:</b><br />
&#8211; <i><b>SOAP </b></i>Protocol<br />
&#8211; Document Literal Binding<br />
&#8211; No optional <i><b>SOAP </b></i>Header included in <b><i>WSDL</i></b><br />
&#8211; <i><b>SOAP </b></i>Body</p>
<h2><b>Content of <i>HelloWorldService.wsdl</i> file</b></h2>
<pre class="highlight"><;definitions name="HelloWorldService" 
 targetNamespace="https://dineshonjava.com/wsdl/HelloWorldService.wsdl" 
 xmlns="http://schemas.xmlsoap.org/wsdl/" 
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
 xmlns:tns="https://dineshonjava.com/wsdl/HelloWorldService.wsdl" 
 xmlns:xsd="http://www.w3.org/2001/XMLSchema">; 
 
 <;message name="SayHelloRequest">; 
 <;part name="firstName" type="xsd:string"/>; 
 <;/message>; 
 <;message name="SayHelloResponse">; 
 <;part name="greeting" type="xsd:string"/>; 
 <;/message>; 
 
 <;portType name="HelloWorld_PortType">; 
 <;operation name="sayHelloWorld">; 
 <;input message="tns:SayHelloRequest"/>; 
 <;output message="tns:SayHelloResponse"/>; 
 <;/operation>; 
 <;/portType>; 
 
 <;binding name="HelloWorld_Binding" type="tns:HelloWorld_PortType">; 
 <;soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>; 
 <;operation name="sayHelloWorld">; 
 <;soap:operation soapAction="sayHelloWorld"/>; 
 <;input>; 
 <;soap:body 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
 namespace="urn:examples:helloworldservice" 
 use="encoded"/>; 
 <;/input>; 
 <;output>; 
 <;soap:body 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
 namespace="urn:dineshonjava:helloworldservice" 
 use="encoded"/>; 
 <;/output>; 
 <;/operation>; 
 <;/binding>; 
 
 <;service name="HelloWorld_Service">; 
 <;documentation>;WSDL File for HelloWorldService<;/documentation>; 
 <;port binding="tns:HelloWorld_Binding" name="HelloWorld_Port">; 
 <;soap:address 
 location="https://dineshonjava.com/SayHelloWorld/">; 
 <;/port>; 
 <;/service>; 
<;/definitions>; 
</pre>
<div id="ads-id" align="center"></div>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/05/wsdld-1.png" border="0" /></div>
<h2><b>Analysis of the Example</b></h2>
<p><b>1. Definition </b>: <i><b>HelloWorldService</b></i></p>
<p><b>2. Type </b>: Using built-in data types and they are defined in XMLSchema.</p>
<p><b>3. Message </b>:</p>
<ul>
<li><b>sayHelloRequest </b>: firstName parameter</li>
<li><b>sayHelloresponse</b>: greeting return value</li>
</ul>
<p><b>4. Port Type</b>: <i><b>sayHelloWorld </b></i>operation that consists of a request and response service.</p>
<p><b>5. Binding</b>: Direction to use the SOAP HTTP transport protocol.</p>
<p><b>6. Service</b>: Service available at <i><b>https://dineshonjava.com/SayHelloWorld/.</b></i></p>
<p><b>7. Port</b>: Associates the binding with the URI <b><i>https://dineshonjava.com/SayHelloWorld/</i></b> where the running service can be accessed.</p>
<h3><b><br />
WSDL Ports</b></h3>
<p>The <b><;portType>;</b> element is the most important WSDL element.<br />
It describes a web service, the operations that can be performed, and the messages that are involved.<br />
The <;portType>; element can be compared to a function library (or a module, or a class) in a traditional programming language.<br />
<b><br />
WSDL Messages</b></p>
<p>The <b><;message>;</b> element defines the data elements of an operation.<br />
Each message can consist of one or more parts. The parts can be compared to the parameters of a function call in a traditional programming language.<br />
<b><br />
WSDL Types</b><br />
The <b><;types>;</b> element defines the data types that are used by the web service.<br />
For maximum platform neutrality, WSDL uses XML Schema syntax to define data types.<br />
<b><br />
WSDL Bindings</b><br />
The <b><;binding>;</b> element defines the data format and protocol for each port type.</p>
<p><i><b>References</b></i><br />
<i><b><a href="http://en.wikipedia.org/wiki/Web_Services_Description_Language" target="_blank" rel="noopener">Wikipedia for WSDL</a></b></i></p>
<p> ;</p>
<div style="background-color: pink; border-width: thin; text-align: center;"><b><;<;<a href="https://dineshonjava.com/wsdl-elements/">Previous</a> <;<; || <a href="https://dineshonjava.com/core-java-baby-step-to-be-best-java-ian/">Index </a>|| >;>;<a href="https://dineshonjava.com/wsdl-definition-element/">Next</a> >;>;</b></div>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/wsdl-elements/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/wsdl-definition-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: '457'});
});
</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…