验证请求的问题 - 错误105 [英] Problems for authenticating requests - error 105

查看:45
本文介绍了验证请求的问题 - 错误105的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试通过Bing Ads API执行多项请求,但由于凭据无效,我将永久收到105错误。现在我正在处理
客户管理服务 GetAccountsInfoResquest 操作。我有一个
多用户的开发人员令牌,我正在实施OAuth2身份验证过程。以下是我发送的请求示例:

I'm trying to perform several requests over the Bing Ads API but I'm permanently receiving a 105 error because of invalid credentials. Right now I'm working over the Customer Management Service and the GetAccountsInfoResquest operation. I have a Multi User's Developer Token and I'm implementing the OAuth2 authentication process. Here is an example of the request that I'm sending:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="https://bingads.microsoft.com/Customer/v9">
  <env:Header>
    <ApplicationToken/>
    <AuthenticationToken>THE AUTHENTICATION TOKEN OBTAINED BY USING OAUTH2</AuthenticationToken>
    <DeveloperToken>MULTI USER'S DEVELOPER TOKEN</DeveloperToken>
    <Password/>
    <UserName/>
  </env:Header>
  <env:Body>
    <tns:GetAccountsInfoRequest>
      <CustomerId>HERE IS THE CUSTOMER ID</CustomerId>
    </tns:GetAccountsInfoRequest>
  </env:Body>
</env:Envelope>

我的开发人员令牌看似活跃,获取和刷新用户令牌的过程正常没有任何问题。任何帮助都会非常感激。

My developer token looks like active and the process for obtaining and refreshing the user tokens works without any problem. Any help would be really appreciated.

提前谢谢你,Sergio。

Thank you in advance, Sergio.

推荐答案

I已经使用SOAP UI进行了一些测试,看起来凭证都没问题,但问题是因为请求中的命名空间使用不当。

I've made some tests with SOAP UI and it looks like the credentials are all right, but the problem is because of a bad use of namespaces within the request.

我会看看有关使用Savon在Ruby中执行此类SOAP请求的示例。

I'll take a look for examples of using Savon for performing this kind of SOAP requests in Ruby.


这篇关于验证请求的问题 - 错误105的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆