Wednesday, August 6, 2014

WSDL PORT ELEMENT

WSDL PORT ELEMENT


A <port> element defines an individual endpoint by specifying a single address for a binding.
Here is the grammer to specify a port:
<wsdl:definitions .... >
    <wsdl:service .... > *
        <wsdl:port name="nmtoken" binding="qname"> *
        <-- extensibility element (1) -->
       </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
  • The port element has two attributes - the name attribute and the binding attribute.
  • The name attribute provides a unique name among all ports defined within in the enclosing WSDL document.
  • The binding attribute refers to the binding using the linking rules defined by WSDL.
  • Binding extensibility elements (1) are used to specify the address information for the port.
  • A port MUST NOT specify more than one address.
  • A port MUST NOT specify any binding information other than address information.
Here is the pice of code from Example session:

 <service name="Hello_Service">
      <documentation>WSDL File for HelloService</documentation>
      <port binding="tns:Hello_Binding" name="Hello_Port">
         <soap:address
            location="http://www.examples.com/SayHello/">
      </port>
   </service>

No comments:

Easy Way to Handle Android Notifications

Android Notifications Android Toast class provides a handy way to show users alerts but problem is that these alerts are not persist...