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

WSDL document syntax

A WSDL document is just a simple XML document.

It contains a series of definitions that describe a web service.

WSDL document example

这是某个 WSDL 文档的简化的片段:

<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>