Abstract Interface Definition: interface Element
  • The interface element defines the communication pattern for a message.
  • The communication pattern is made up of a collection of logically related operations that are defined in the operation element.
  • The syntax for the interface element is:

<interface name=”InterfaceName”>

where InterfaceName is the name of the port or interface.

In the code example, LibInterface is the name of the interface.

<definitions name=”SchoolLibrary”
targetNamespace="http://www.school.com/Library.wsdl"> <xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <message name="getBookRequest">
    <part name="Title" type="xsd:string"/>
  </message>

  <message name="getBookResponse">
    <part name="return" type="xsd:string"/>
  </message>

  <interface name=”LibInterface”>
    ...
  </interface>

  <service>
    ...
  </service>

  <binding>
    ...
  </binding>

</definitions>

Click the Next button to continue.