A WSDL definition contains the following structural elements:
<definitions>
It is the root element in WSDL. It defines the name of the web service and specifies the namespace that would be used in the WSDL document.
xmlns:tns - means this namespace i.e. namespace used for particular WSDL
xmlns - specifies default name space i.e. all of the elements in this WSDL definition without namespace prefix such as , are part of this namespace
targetNamespace - it lets the WSDL document make references to itself as an XML schema namespace, it’s not required for WSDL document to actually exist at the address specified, it only specifies the way to refer to WSDL definition in unique way
name - name of the service
<types>
It encloses the data type definitions that would be used to define the messages exchanged between user and the service.
element - specifies the data type, in above example define two elements “addition” and “additionResponse” which are further categorized as complexType
<message>
It represents a logical definition of the data being transmitted between service and the user.
It contains one or more logical parts, part are flexible mechanism for describing logical abstract content of the message and each part is associated with type from some system i.e. type of part are defined by the element in <types>
<portType>
It defines the abstract definitions of the operations exposed by the web service.
It defines operation by combining <input> message as defined by input <message> and <output> message as defined by the output <message> element.
<binding>
It defines message format and protocols details for operations and message defined by particular <porttype>
<service>
Specifies Location of the service
<port> in service defines the endpoint by specifying single address for a binding