WSDL Definition Element

The <definition> element must be the root element of all WSDL documents. It defines the name of the web service.
Here is the example piece of code from last session which uses definition element.
<definitions name="HelloWorldService"
   targetNamespace="http://www.dineshonjava.com/wsdl/HelloWorldService.wsdl"
   xmlns="http://schemas.xmlsoap.org/wsdl/"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:tns="http://www.dineshonjava.com/wsdl/HelloWorldService.wsdl"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema">
............................................

<definitions>
From the above example we can conclude the followings points:

NOTE: 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.



References
Wikipedia for WSDL

 



<<Previous <<   || Index ||   >>Next >>

Labels: