在我的WSDL文件我有一個用戶認證模塊:致命錯誤:未捕獲的SOAPFault異常:[NS1:Client.AUTH_1]驗證失敗
<!-- User authentication -->
<element name="UserAuthentication">
<complexType>
<sequence>
<element name="iId" type="xsd:int" />
<element name="sPassword" type="xsd:string" />
<element name="sType" type="api:UserType" />
</sequence>
</complexType>
</element>
我試圖實例化一個SOAP調用像這樣:
$client = new SoapClient("http://api.example.com/v2/example?wsdl",
array(
'iId' => 123456,
'sPassword' => 'fhfhfhfhfhfhfh46464dtdts64iyiyi',
'sType' => 'ghfh57477gghdkskdk68585jghhddhdghds'));
提供了實際值。劇本報告:
SoapFault exception: [ns1:Client.AUTH_1] Authentication Failed in
我錯過了什麼?
任何變化affiliatewindow API是這樣的:
所以像這樣的東西試試? API的消息是什麼?只是另一個瘋狂的猜測:缺少標題? – Max
@Gal - 是的,最深刻的 – cookie
@Max,的確如此。我沒有得到這份工作;)。 – cookie