Document/Literal Messaging Mode
  • In document/literal, the SOAP body element contains an XML data document that corresponds to the XML schema defined within the WSDL document.
  • In the WSDL document snippet, the myMethod operation name is defined as an element in the SOAP message.

The code example shows the myMethod operation name specified in the WSDL document. The operation name is further defined as an element in the SOAP message.

WSDL Document
<binding>
  <message name="myMethod">
    <part name="x" type="xsd:int"/>
    <part name="y" type="xsd:float"/>
  </message>

  <interface name="myInterface”>
    <operation name="myMethod">
      <input message="myMethodRequest"/>
      <output message="empty"/>
    </operation>
  </interface>
</binding>

SOAP Message
<soap:envelope>
  <soap:body>
    <myMethod>
      <x>5</x>
      <y>5.0</y>
    </myMethod>
  </soap:body>
</soap:envelope>

Click the Next button to continue.