POST /xxxx/service.asmx HTTP/1.1
Host: xxx.xxx.xxx.xx
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://apps.org/GetLogin"
<?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>
<GetLogin xmlns="http://nhiapps.org/">
<username>string</username>
<password>string</password>
<AppsID>string</AppsID>
</GetLogin>
</soap:Body>
</soap:Envelope>
<?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>
<GetLoginResponse xmlns="http://nhiapps.org/">
<GetLoginResult>string</GetLoginResult>
</GetLoginResponse>
</soap:Body>
</soap:Envelope>
这是我的SOAP代码。 我想使用PHP执行Web服务身份验证。我必须调用IP地址中的get login函数来进行身份验证。
答案 0 :(得分:0)
我建议你使用现有的框架。
只需将http://framework.zend.com/manual/current/en/modules/zend.soap.client.html包含在作曲家中即可。