GetAccountMonthlySpend Soap请求ActionNotSupported错误 [英] GetAccountMonthlySpend Soap Request ActionNotSupported Error
问题描述
我要通过邮递员发送邮件请求:
I am sending a post request to via Postman:
https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V9/ReportingService .svc
https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V9/ReportingService.svc
我有一个包含以下内容的原始文本/ xml正文:
I have a raw text/xml body containing the following:
< s : Envelope
xmlns:i = " http://www.w3.org/2001/XMLSchema-instance "
xmlns:s = " http://schemas.xmlsoap.org/soap/envelope/ " >
< s : 标题
xmlns = " https://bingads.microsoft.com/Billing/v11 " >
< 动作
mustUnderstand = " 1 " > GetAccountMonthlySpend < / 操作 >
< ApplicationToken
i:nil = " false < span style ="color:Black">" > < / ApplicationToken >
< AuthenticationToken
i:nil = " false < span style ="color:Black">" > < / AuthenticationToken >
< DeveloperToken
i:nil = " false < span style ="color:Black">" > < / DeveloperToken >
< 密码
i:nil = " false < span style ="color:Black">" > < / 密码 >
< UserName
i:nil = " false < span style ="color:Black">" > < / UserName >
< / s : 标题 >
< s : 正文 >
< GetAccountMonthlySpendRequest
xmlns = " https://bingads.microsoft。 com / Billing / v11 " >
  ;&NBSP;&NBSP;&NBSP;&NBSP; < AccountId > < / AccountId >
< MonthYear > < / MonthYear >
< / GetAccountMonthlySpendRequest >
< / s : Body >
< / s : 信封 >
<s:Envelope
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header
xmlns="https://bingads.microsoft.com/Billing/v11">
<Action
mustUnderstand="1">GetAccountMonthlySpend</Action>
<ApplicationToken
i:nil="false"></ApplicationToken>
<AuthenticationToken
i:nil="false"></AuthenticationToken>
<DeveloperToken
i:nil="false"></DeveloperToken>
<Password
i:nil="false"></Password>
<UserName
i:nil="false"></UserName>
</s:Header>
<s:Body>
<GetAccountMonthlySpendRequest
xmlns="https://bingads.microsoft.com/Billing/v11">
<AccountId></AccountId>
<MonthYear></MonthYear>
</GetAccountMonthlySpendRequest>
</s:Body>
</s:Envelope>
使用所需的值。
我收到以下错误:
FaultCode:a:ActionNotSupported
FaultCode: a:ActionNotSupported
FaultString:  ;由于EndpointDispatcher上的ContractFilter不匹配,无法在接收方处理带有Action''的消息。这可能是因为合同不匹配(发件人和收件人之间不匹配的操作)或发件人与收件人之间的绑定/安全
不匹配。 检查发件人和收件人是否具有相同的合同和相同的约束(包括安全要求,例如邮件,传输,无)。
FaultString: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
有没有人知道为什么?谢谢!
Does anyone know why? Thanks!
推荐答案
您好。
您需要使用客户结算服务端点即, https://clientcenter.api.bingads.microsoft.com/Api/ Billing / v11 / CustomerBillingService.svc 而不是
的报告。
You'll need to use the Customer Billing service endpoint i.e., https://clientcenter.api.bingads.microsoft.com/Api/Billing/v11/CustomerBillingService.svc instead of reporting.
如果您有任何后续问题,请与我们联系。
Please reach out if you have any follow up questions.
Eric
这篇关于GetAccountMonthlySpend Soap请求ActionNotSupported错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!