簡體   English   中英

使用php進行Web服務認證

[英]web service authentication using php

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函數以完成身份驗證。

我建議您使用現有框架。

只要在作曲家中添加http://framework.zend.com/manual/current/en/modules/zend.soap.client.html ,它就可以工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM