eBay交易SOAP API - 无效的AppId?

2024-09-30 03:25:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用soapi第一次调用eBay沙盒

我一直收到一个无效的AppId响应。我检查了四倍,确认我确实有适合沙盒环境的AppIp。易趣文档是相当没有帮助的。在

我使用SUDS和python2.7进行调用。在

请求

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>

回应

^{pr2}$

Tags: orgenv沙盒httpversionschemassoapenvelope

热门问题