<div dir="ltr" style="text-align: justify;" trbidi="on">The <b><;definition>;</b> element must be the root element of all WSDL documents. It defines the name of the web service.<br />
Here is the example piece of code from last session which uses <i><b>definition </b></i>element.</p>
<pre class="highlight" name="code"><;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">;
............................................

<;definitions>;
</pre>
<div align="center" id="ads-id"></div>
<p>From the above example we can conclude the followings points:</p>
<ul>
<li>The definitions element is a container of all the other elements.</li>
<li>The definitions element specifies that this document is the <b><i>HelloWorldService</i></b>.</li>
<li>The definitions element specifies a <i><b>targetNamespace </b></i>attribute. The <i><b>targetNamespace </b></i>is a convention of XML Schema that enables the WSDL document to refer to itself. In this example we have specified a <i><b>targetNamespace </b></i>of <i><b>https://dineshonjava.com/wsdl/HelloWorldService.wsdl</b></i>.</li>
<li>The definition element specifies a default <i><b>namespace: xmlns=http://schemas.xmlsoap.org/wsdl/.</b></i> All elements without a namespace prefix, such as <i><b>message </b></i>or <b><i>portType</i></b>, are therefore assumed to be part of the default <b>WSDL </b>namespace.</li>
<li>It also specifies numerous namespaces that will be used throughout the remainder of the document.</li>
</ul>
<p> <b>NOTE:</b> The namespace specification does not require that the document actually exist at the given location. The important point is that you specify a value that is unique, different from all other namespaces that are defined.</p>
<p><i><b>References</b></i><br />
<i><b><a href="http://en.wikipedia.org/wiki/Web_Services_Description_Language" target="_blank">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/2013/05/hello-world-example-wsdl-document.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/wsdl-message-element.html">Next</a> >;>;</b></div>
<p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/hello-world-example-wsdl-document/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/wsdl-message-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: '456'});
});
</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…