ຄວາມສະແດງ SOAP
- ຫນ້າທີ່ເວັບບາດ ການຕິດຕໍ່ SOAP HTTP
- ຫນ້າທີ່ໜ້າ ການລວບລວມ SOAP
ຄວາມລະອຽດ SOAP
ໃນຕົວຢ່າງລາວໄດ້ສົ່ງການຮຽກຮ້ອງ GetStockPrice ໄປຫາທະນາຄານ。ການຮຽກຮ້ອງນີ້ມີຄວາມລະອຽດ StockName ແລະໃນການຕອບກັບຈະກັບຄືນ Price 参数。ຊຸດຊົນຂອງພາສານີ້ຖືກກໍານົດຢູ່ທີ່ລະບົບຕາມລະຫັດນີ້: "http://www.example.org/stock"
ຄຳຂໍ SOAP:
POST /InStock HTTP/1.1 Host: www.example.org Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Body xmlns:m="http://www.example.org/stock"> <m:GetStockPrice> <m:StockName>IBM</m:StockName> </m:GetStockPrice> </soap:Body> </soap:Envelope>
ຄຳຕອບ SOAP:
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: nnn <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Body xmlns:m="http://www.example.org/stock"> <m:GetStockPriceResponse> <m:Price>34.5</m:Price> </m:GetStockPriceResponse> </soap:Body> </soap:Envelope>
- ຫນ້າທີ່ເວັບບາດ ການຕິດຕໍ່ SOAP HTTP
- ຫນ້າທີ່ໜ້າ ການລວບລວມ SOAP