13 - WSDL 1.1 Definition Element

The definitions element is the root for any element in a WSDL 1.1 file and the container of all the other elements. It is used to define the name of the web service. It is also used for defining a set of namespaces that will be used throughout the document.


The following is an example of a definitions element of a WSDL 1.1 file:

  xmlns:wsdl = “http://schemas.xmlsoap.org/wsdl/" 
  xmlns:ns1 = “http://org.apache.axis2/xsd”
  xmlns:ns = “http://goj.demo.com" 
  xmlns:wsaw = “http://www.w3.org/2006/05/addressing/wsdl" 
  xmlns:http = “http://schemas.xmlsoap.org/wsdl/http/" 
  xmlns:xs = “http://www.w3.org/2001/XMLSchema" 
  xmlns:mime = “http://schemas.xmlsoap.org/wsdl/mime/" 
  xmlns:soap = “http://schemas.xmlsoap.org/wsdl/soap/" 
  xmlns:soap12 = “http://schemas.xmlsoap.org/wsdl/soap12/" 
  targetNamespace = “http://goj.demo.com">

Like us on Facebook