WSDL Ports Element

A <port> element defines an individual endpoint by specifying a single address for a binding.

  • 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.
  • A port MUST NOT specify more than one address.
  • A port MUST NOT specify any binding information other than address information.

Here is the piece of code from Example session:

<service name="HelloWorld_Service">
      <documentation>WSDL File for HelloWorldService</documentation>
      <port binding="tns:HelloWorld_Binding" name="HelloWorld_Port">
         <soap:address
            location="https://www.dineshonjava.com/SayHelloWorld/">
      </port>
   </service>

References
Wikipedia for WSDL

 

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