Tutorials Point


  WSDL Tutorial
  WDSL References
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     About TP     Advertising  

WSDL Ports Element

previous next AddThis Social Bookmark Button


Advertisements

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>


previous next Printer Friendly

Advertisements


  

Advertisements