【发布时间】:2012-08-17 06:16:26
【问题描述】:
我使用 PHP,但从未使用过 SOAP 之类的东西。但是今天我的经理告诉我从以下 SOAP 请求中获取请求。 因为我不知道 SOAP 是什么,它的用途是什么,甚至不知道如何在我的页面中使用它。 有人可以告诉我如何从这个示例请求中提出请求吗? 谢谢。 我尝试搜索谷歌,但没有找到相关结果。
POST /TestService/Service.asmx HTTP/1.1
Host: 123.12.12.123
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://abc.com/Mobile"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Mobile xmlns="http://abc.com/">
<str>string</str>
</Mobile>
</soap:Body>
</soap:Envelope>
length 和 string 是占位符。
【问题讨论】:
-
包含“紧急!!!!!One!!11”、PLZ GIMME TEH CODEZ ASAP 等的问题在 StackOverflow 上被认为是非建设性的。
-
这很有趣。我搜索了谷歌,这是我的第一个结果:php.net/manual/en/soapclient.getlastresponse.php
-
一般 SOAP 信息:en.wikipedia.org/wiki/SOAP.