WSDL is an XML-based language used to describe Web Services and how to access Web Services.

WSDL port syntax

The

<portType> element is the most important WSDL element.

It can describe a web service, the operations that can be performed, and related messages.

The <portType> element can be compared to a function library (or a module, or a class) in a traditional programming language.

WSDL port example

<message name="getTermRequest">
  <part name="term" type="xs:string"/>
</message>
<message name="getTermResponse">
  <part name="value" type="xs:string"/>
</message>
<portType name="glossaryTerms">
  <operation name="getTerm">
    <input message="getTermRequest"/>
    <output message="getTermResponse"/>
  </operation>
</portType>