我试图通过在地址栏GET拨打电话到eBay的查找API,和我得到这些错误(XML):
<errorMessage xmlns="http://www.ebay.com/marketplace/search/v1/services">
<error>
<errorId>2033</errorId>
<domain>CoreRuntime</domain>
<severity>Error</severity>
<category>Request</category>
<message>
Input URL gave a value for header X-EBAY-SOA-OPERATION-NAME equal to findItemsByKeywords but has a conflicting mapped value, findItemsByKeywords
</message>
<subdomain>Inbound_Meta_Data</subdomain>
<parameter name="Param1">X-EBAY-SOA-OPERATION-NAME</parameter>
<parameter name="Param2">findItemsByKeywords</parameter>
<parameter name="Param3">findItemsByKeywords</parameter>
</error>
<error>
<errorId>2010</errorId>
<domain>CoreRuntime</domain>
<severity>Error</severity>
<category>Request</category>
<message>Unknown response payload type XML</message>
<subdomain>Inbound_Meta_Data</subdomain>
<parameter name="Param1">XML</parameter>
</error>
<error>
<errorId>2021</errorId>
<domain>CoreRuntime</domain>
<severity>Error</severity>
<category>Request</category>
<message>Invalid version format 1.13.0</message>
<subdomain>Inbound_Meta_Data</subdomain>
<parameter name="Param1">1.13.0</parameter>
</error>
</errorMessage>
这里是我的网址:
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords
&SERVICE-VERSION=1.0.0
&SECURITY-APPNAME=YourAppID
&RESPONSE-DATA-FORMAT=XML
&REST-PAYLOAD
&keywords=harry%20potter%20phoenix
我已经与eBay开发者API注册,和上面的网址是直接从他们的文档 。
我已经取代了YourAppID用我自己在我结束在此的代码。