GetCustomersInfo出错 [英] Error with GetCustomersInfo
问题描述
我收到错误: SoapFault异常:[s:服务器]无效的客户端数据。查看SOAP故障详细信息以获取更多信息。
I am getting the error: SoapFault exception: [s:Server] Invalid client data. Check the SOAP fault details for more information.
用于呼叫: GetCustomersInfo http://msdn.microsoft.com/en-US/library/ff728420.aspx
for the call: GetCustomersInfo http://msdn.microsoft.com/en-US/library/ff728420.aspx
我使用的是PHP 5.3
I am using PHP 5.3
<?xml version =" 1.0" encoding =" UTF-8"?>
< SOAP-ENV:Envelope xmlns:SOAP-ENV =" http://schemas.xmlsoap.org/soap/envelope/"的xmlns:NS1 = QUOT; HTTPS://adcenter.microsoft.com/api/customermanagement" xmlns:ns2 =" https://adcenter.microsoft.com/v8">< SOAP-ENV:Header>< ns2:ApplicationToken>< / ns2:ApplicationToken>< ns2:DeveloperToken> MY
DEVELOEPR TOKEN< / ns2:DeveloperToken>< ns2:UserName> MYUSERNAME< / ns2:UserName>< ns2:Password> MYPASSWORD< / ns2:Password>< / SOAP-ENV:Header>< SOAP-ENV :车身>< NS1:GetCustomersInfoRequest>< NS1:CustomerNameFilter>< / NS1:CustomerNameFilter>< NS1:TOPN> 500℃; / NS1:TOPN>< NS1:ApplicationScope>< / NS1:ApplicationScope>< / ns1:GetCustomersInfoRequest>< / SOAP-ENV:Body>< / SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adcenter.microsoft.com/api/customermanagement" xmlns:ns2="https://adcenter.microsoft.com/v8"><SOAP-ENV:Header><ns2:ApplicationToken></ns2:ApplicationToken><ns2:DeveloperToken>MY
DEVELOEPR TOKEN</ns2:DeveloperToken><ns2:UserName>MYUSERNAME</ns2:UserName><ns2:Password>MYPASSWORD</ns2:Password></SOAP-ENV:Header><SOAP-ENV:Body><ns1:GetCustomersInfoRequest><ns1:CustomerNameFilter></ns1:CustomerNameFilter><ns1:TopN>500</ns1:TopN><ns1:ApplicationScope></ns1:ApplicationScope></ns1:GetCustomersInfoRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
我收到以下回复:
< s:信封
xmlns:s =" http://schemas.xmlsoap.org/soap/envelope/ "> ; < s:正文> < s:故障> < faultcode> s:服务器 < / faultcode> < faultstring
xml:l ang =" en-US "> 无效的客户数据。检查SOAP故障详细信息以获取更多信息 < / faultstring> < detail> < AdApiFaultDetail
xmlns =" https://adapi.microsoft.com "
xmlns:i =" http://www.w3.org/2001/XMLSchema-instance "> < TrackingId> bffd2d41-6142-4106-bb30-3ee0216f1b14 < / TrackingId> <错误> < AdApiError> <代码> 105 < /代码> <详情
i:nil =" true " /> < ErrorCode> InvalidCredentials < / ErrorCode> <消息> 身份验证
失败。提供的凭据无效或帐户处于非活动状态 < / Message> < / AdApiError> < /错误> < / AdApiFaultDetail> < / detail> < / s:故障> < / s:正文> < / s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Server</faultcode><faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information</faultstring><detail><AdApiFaultDetail xmlns="https://adapi.microsoft.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><TrackingId>bffd2d41-6142-4106-bb30-3ee0216f1b14</TrackingId><Errors><AdApiError><Code>105</Code><Detail i:nil="true"/><ErrorCode>InvalidCredentials</ErrorCode><Message>Authentication failed. Either supplied credentials are invalid or the account is inactive</Message></AdApiError></Errors></AdApiFaultDetail></detail></s:Fault></s:Body></s:Envelope>
现在,通常情况下,我认为这只是一个糟糕的用户名和/或密码,但是当我使用相同的精确过程时,GetCampaignsByAccountId调用具有相同的标题,它可以正常工作。
Now, usually, I would think it is just a bad username and/or password, but when I use the same exact process, with the same headers for the GetCampaignsByAccountId call, it works just fine.
-Chris
推荐答案
你好Chris,
Hi Chris,
你还遇到这个问题吗?如果是,请告诉我们。我们很乐意提供帮助。
Do you still experience this issue ? If yes, please let us know. We will be happy to assist.
/ Ravi
这篇关于GetCustomersInfo出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!