XML ອານາຈາກສອນ

ການພັດທະນາ WSDL ສາມາດກຳນົດຮູບແບບຂໍ້ຄວາມ ແລະລະບຽບຂອງວຽກງານ.

ພັດທະນາກັບ 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 ມີສອງ attribute - attribute name ແລະ attribute type.

attribute name ກຳນົດຊື່ຂອງ binding, ແລະ attribute type ໄດ້ອອກມາຈາກ port ທີ່ຈະນຳໃຊ້ binding, ໃນກໍານົດນີ້ແມ່ນ port "glossaryTerms".

soap:binding element ມີສອງ attribute - style attribute ແລະ transport attribute.

ບັນດາບັນດາບາງປະເພດ style ສາມາດເປັນ "rpc" ຫຼື "document". ໃນກໍານົດນີ້, ພວກເຮົາໃຊ້ document. transport attribute ກຳນົດການຂອງ SOAP ທີ່ຈະໃຊ້. ໃນກໍານົດນີ້, ພວກເຮົາໃຊ້ HTTP.

operation ບັນດາບາງປະເພດທີ່ກຳນົດການກະທຳທີ່ຕ້ອງມີການບໍລິການຂອງແຕ່ລະຫົວໜ້າ.

ສຳລັບແຕ່ລະການກະທຳ, ການສະແດງ SOAP ສະຫຼາກຂອງການກະທຳຕ້ອງໄດ້ຖືກກໍານົດ. ນັບຕັ້ງຈາກນັ້ນ, ທ່ານຕ້ອງກຳນົດວ່າເຂົາເຈົ້າຈະກຳນົດຄວາມຂອງຂໍ້ມູນເຂົ້າແລະຂໍ້ມູນອອກ. ໃນກໍານົດນີ້, ພວກເຮົາໃຊ້ "literal".