WSDL bango

الربط WSDL يمكنه تحديد صيغة الرسائل والتفاصيل Protocols للخدمات Web.

مربوط إلى SOAP

واحد طلب - إجابة النموذج:

<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>
<binding type="glossaryTerms" name="b1">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
  <operation>
    <soap:operation
     soapAction="http://example.com/getTerm" />
    <input>
      <soap:body use="literal" />
    </input>
    <output>
      <soap:body use="literal" />
    </output>
  </operation>
</binding>

binding Element has two attributes - name attribute and type attribute.

name attribute defines the name of the binding, while the type attribute points to the port used for binding, which is "glossaryTerms" port in this example.

soap:binding Element has two attributes - style attribute and transport attribute.

style attribute can be "rpc" or "document". In this example, we use document. transport attribute defines the SOAP protocol to be used. In this example, we use HTTP.

operation Element defines the operators provided by each port.

For each operation, the corresponding SOAP action must be defined. At the same time, you must define how to encode input and output. In this example, we used "literal".