PHP Soap身份验证头
样本请求:PHP Soap身份验证头,php,api,soap,Php,Api,Soap,样本请求: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="https://ws.intermedia.net/Account/Management"> <soapenv:Header> <AuthentificationInfo> <login>[PLRAdminUserName]</login>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="https://ws.intermedia.net/Account/Management">
<soapenv:Header>
<AuthentificationInfo>
<login>[PLRAdminUserName]</login>
<password>[PLRAdminPassword]</password>
<accountID>[accountID]</accountID>
</AuthentificationInfo>
</soapenv:Header>
<soapenv:Body>
<GetAccount>
<accountID>[accountID]</accountID>
</GetAccount>
</soapenv:Body>
</soapenv:Envelope>
我收到以下错误消息:
soap:ServerServer was unable to process request. ---> Access denied; Code: 0x0008
有人能看出代码有什么问题吗?试试看
$headerBody = array(
'login' => $login,
'password' => $password,
'accountID' => $partnerID);
试一试
$headerBody = array(
'login' => $login,
'password' => $password,
'accountID' => $partnerID);
我的命名空间不正确 Mikaël DELSOL的回答也有帮助,因为我不需要
数组('AuthenticationInfo'=>
部分。
也不需要:$client->uu soapCall(“echoVoid”,数组(null));
谢谢!我的命名空间不正确 Mikaël DELSOL的回答也有帮助,因为我不需要
数组('AuthenticationInfo'=>
部分。
也不需要:$client->uu soapCall(“echoVoid”,数组(null));
谢谢!只为其他可能遇到此问题的人: 我变了
$ns = 'https://ws.intermedia.net/Account/Management';
致:
仅适用于可能遇到此问题的任何其他人: 我变了
$ns = 'https://ws.intermedia.net/Account/Management';
致:
然后,我建议您尝试根据此WSDL生成抽象层包。在上,您将看到调用web服务比以往任何时候都更容易。您将能够轻松地设置Soapheader,而无需任何疑问和质疑。如果您需要任何帮助,请告诉我。然后我建议您尝试生成抽象层根据此WSDL进行打包,您将看到调用web服务比以往任何时候都更容易。您将能够轻松地设置Soapheader,而无需任何怀疑和质疑。如果您需要任何帮助,请告诉我。您可以详细说明不正确的名称空间吗?您可以详细说明不正确的名称空间吗?