本文介绍了沙箱上的SignupCustomer 500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,

我正在进行Sanbox Bing Ads API验证,并且今天在SignupCustomer上获得常量500,之前曾经工作过。不确定我做错了什么。但是回复信息对我来说毫无意义。也许您可以建议其他方法

I am doing Sanbox Bing Ads API verification and getting constant 500 on SignupCustomer today, which used to work before. Not sure if what I am doing wrong. But the response message is meaningless to me. Maybe could you suggest other methods to 

Check the SOAP fault details for more information

这是SOAP日志:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:tns="https://bingads.microsoft.com/Customer/v11" xmlns:ns0="https://bingads.microsoft.com/Customer/v11" xmlns:ns1="https://bingads.microsoft.com/Customer/v11/Entities" xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header>
      <tns:DeveloperToken>BBD37VB98</tns:DeveloperToken>
      <tns:Password>******</tns:Password>
      <tns:UserName>******</tns:UserName>
   </SOAP-ENV:Header>
   <ns2:Body>
      <ns0:SignupCustomerRequest>
         <ns0:Customer>
            <ns1:CustomerAddress>
               <ns1:City>AUCKLAND</ns1:City>
               <ns1:CountryCode>NZ</ns1:CountryCode>
               <ns1:Line1>604 Great South Road, Ellerslie, Auckland 1051</ns1:Line1>
               <ns1:PostalCode>1051</ns1:PostalCode>
            </ns1:CustomerAddress>
            <ns1:Industry>Other</ns1:Industry>
            <ns1:MarketCountry>NZ</ns1:MarketCountry>
            <ns1:MarketLanguage>English</ns1:MarketLanguage>
            <ns1:Name>Evolve Integrated Health Specialists</ns1:Name>
         </ns0:Customer>
         <ns0:Account xsi:type="ns1:AdvertiserAccount">
            <ns1:AccountType>Advertiser</ns1:AccountType>
            <ns1:CurrencyType>NewZealandDollar</ns1:CurrencyType>
            <ns1:ForwardCompatibilityMap>
               <ns3:KeyValuePairOfstringstring>
                  <ns3:key>AutoTag</ns3:key>
                  <ns3:value>0</ns3:value>
               </ns3:KeyValuePairOfstringstring>
            </ns1:ForwardCompatibilityMap>
            <ns1:Name>Evolve Integrated Health Specialists</ns1:Name>
            <ns1:ParentCustomerId>257340889</ns1:ParentCustomerId>
            <ns1:TimeZone>AucklandWellington</ns1:TimeZone>
            <ns1:BusinessAddress>
               <ns1:City>AUCKLAND</ns1:City>
               <ns1:CountryCode>NZ</ns1:CountryCode>
               <ns1:Line1>604 Great South Road, Ellerslie, Auckland 1051</ns1:Line1>
               <ns1:PostalCode>1051</ns1:PostalCode>
            </ns1:BusinessAddress>
         </ns0:Account>
         <ns0:ParentCustomerId>257340889</ns0:ParentCustomerId>
      </ns0:SignupCustomerRequest>
   </ns2:Body>
</SOAP-ENV:Envelope>

回复:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault>
         <faultcode>s:Client</faultcode>
         <faultstring xml:lang="en-US">Internal system error. Check the SOAP fault details for more information</faultstring>
         <detail>
            <ApiFault xmlns="https://bingads.microsoft.com/Customer/v11" xmlns:a="https://bingads.microsoft.com/Customer/v11/Exception" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
               <TrackingId xmlns="https://adapi.microsoft.com">2466c353-850a-426a-89ce-54598ce64db4</TrackingId>
               <a:OperationErrors>
                  <a:OperationError>
                     <a:Code>-1</a:Code>
                     <a:Details />
                     <a:Message>An internal error has occurred.</a:Message>
                  </a:OperationError>
               </a:OperationErrors>
            </ApiFault>
         </detail>
      </s:Fault>
   </s:Body>
</s:Envelope>

推荐答案

`GetUser`会在回复中产生以下结果。

`GetUser` would yield following in response.

<Roles xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:int>33</a:int>
            <a:int>41</a:int>
</Roles>

更新: 

500请求现在已经消失了相同的请求,并且注册客户似乎现在正在工作。您能否建议我如何避免500响应?

The 500 request is now gone with the same request, and signup customer seems to be working now. Could you please advice how can I avoid 500 response?

< style type =" text / css"> p.p1 {margin:0.0px 0.0px 0.0px 0.0px;字体:15.0px摩纳哥;颜色:#4aef18; background-color:#000000; background-color:rgba(0,0,0,0.85)} span.s1 {font-variant-ligatures:no-common-ligatures}< / style>

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Monaco; color: #4aef18; background-color: #000000; background-color: rgba(0, 0, 0, 0.85)} span.s1 {font-variant-ligatures: no-common-ligatures} </style>


这篇关于沙箱上的SignupCustomer 500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 16:42