NAME提供了一个值

NAME提供了一个值

本文介绍了eBay Finding API findItemsByKeywords返回“输入URL为标头X-EBAY-SOA-OPERATION-NAME提供了一个值,但具有冲突的映射值”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过URL栏中的GET调用eBay的Finding API,但出现以下错误(XML):

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>

这是我的网址:

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,上面的URL直接来自他们的。

I have already registered with eBay developer API, and the above URL is directly from their documentation.

我用自己的替换了YourAppID

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

推荐答案

您还需要在请求中包括SERVICE-NAME:

You need to include the SERVICE-NAME in your request as well:

http://svcs.ebay.com/services/search/FindingService/v1?
    OPERATION-NAME=findItemsByKeywords&
    SERVICE-NAME=FindingService&
    SERVICE-VERSION=1.0.0&
    SECURITY-APPNAME=YourAppId4&
    RESPONSE-DATA-FORMAT=XML&
    REST-PAYLOAD&keywords=harry%20potter%20phoenix

这篇关于eBay Finding API findItemsByKeywords返回“输入URL为标头X-EBAY-SOA-OPERATION-NAME提供了一个值,但具有冲突的映射值”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 07:40