首页 文章

易趣交易SOAP API - AppId无效?

提问于
浏览
0

我正在尝试使用SOAP API第一次打电话到eBay Sandbox

我一直得到 Invalid AppId 回应 . 我四倍检查我确实为Sandbox环境提供了正确的AppIp . 易趣文档相当无益 .

我正在使用SUDS和Python 2.7进行调用 .

Request

DEBUG:suds.client:sending to (https://api.sandbox.ebay.com/wsapi?callname=GetCategories&appid=MyAppId&siteid=2&version=785&routing=default)
message:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="urn:ebay:apis:eBLBaseComponents" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.o
rg/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header>
      <ns0:RequesterCredentials ns1:mustUnderstand="0">
         <eBayAuthToken>MySandboxUserAuthToken</eBayAuthToken>
      </ns0:RequesterCredentials>
   </SOAP-ENV:Header>
   <ns1:Body>
      <ns0:GetCategoriesRequest>
         <ns0:DetailLevel xsi:type="ns0:GetCategoriesRequestType">
            <ns0:DetailLevel>ReturnAll</ns0:DetailLevel>
            <ns0:Version>785</ns0:Version>
            <ns0:ErrorHandling/>
            <ns0:WarningLevel>High</ns0:WarningLevel>
            <ns0:LevelLimit>1</ns0:LevelLimit>
         </ns0:DetailLevel>
      </ns0:GetCategoriesRequest>
   </ns1:Body>
</SOAP-ENV:Envelope>

Response

...
<FaultDetail>
   <ErrorCode>127</ErrorCode>
   <Severity>Error</Severity>
   <DetailedMessage>API application &quot;{0}&quot; invalid.</DetailedMessage>
</FaultDetail>
...

1 回答

  • 0

    尝试在test tool中测试 appId .

相关问题