易趣寻找API调用不工作 [英] ebay finding api call not working

查看:180
本文介绍了易趣寻找API调用不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过在地址栏GET拨打电话到eBay的发现API,我也得到这些错误(XML):

 <的errorMessage的xmlns =htt​​p://www.ebay.com/marketplace/search/v1/services>
<错误>
<&ErrorID中GT; 2033< / ErrorID中>
&LT结构域GT; CoreRuntime< /域>
<&轻重GT;错误< /严重性>
<分类和GT;请求< /类别>
<&消息GT;
输入网址给了接头连接器X-EBAY-SOA-OPERATION-NAME等于findItemsByKeywords值,但有一个矛盾的映射值,findItemsByKeywords
< /消息>
<&子GT; Inbound_Meta_Data< /子>
<参数名称=参数1> X-EBAY-SOA-OPERATION-NAME< /参数>
<参数名称=参数2> findItemsByKeywords< /参数>
<参数名称=参数3> findItemsByKeywords< /参数>
< /错误>
<错误>
<&ErrorID中GT; 2010< / ErrorID中>
&LT结构域GT; CoreRuntime< /域>
<&轻重GT;错误< /严重性>
<分类和GT;请求< /类别>
<&消息GT;未知的响应负载类型的XML< /消息>
<&子GT; Inbound_Meta_Data< /子>
<参数名称=参数1> XML< /参数>
< /错误>
<错误>
<&ErrorID中GT; 2021< / ErrorID中>
&LT结构域GT; CoreRuntime< /域>
<&轻重GT;错误< /严重性>
<分类和GT;请求< /类别>
<&消息GT;的版本格式无效1.13.0< /消息>
<&子GT; Inbound_Meta_Data< /子>
<参数名称=参数1> 1.13.0< /参数>
< /错误>
< /&的errorMessage GT;

下面是我的网址:

<$p$p><$c$c>http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords
   &安培; SERVICE-VERSION = 1.0.0
   与安全性,APPNAME = YourAppID
   &安培;响应数据格式的XML =
   &安培; REST有效载荷
   &安培;关键词=哈里%20potter%20phoenix

我已经与eBay开发者API注册,和上面的网址是直接从他们的文档:

  http://developer.ebay.com/Devzone/finding/Concepts/MakingACall.html#syntax

和我在这code换成我自己YourAppID我到底要不要。


解决方案

这可能只是你在URL中有一定的空间意外。这样的小问题可以产生令人眩晕的API错误。

也可以使用A和的1.12.0点左右SERVICE版本。 1.0.0是有点老了。

I'm trying to make a call in to ebay's finding api via GET in the url bar, and i get these errors(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>

Here is my url:

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

I have already registered with ebay developer api, and the above url is directly from their documentation:

http://developer.ebay.com/Devzone/finding/Concepts/MakingACall.html#syntax

And I have replaced the YourAppID with my own on my end not in this code.

解决方案

It might simply be that you have some spaces accidentally in the URL. Small problems like that can generate dizzying API errors.

Also use a &SERVICE-VERSION of 1.12.0 or thereabouts. 1.0.0 is a bit old.

这篇关于易趣寻找API调用不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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