亚马逊产品广告API WCF4例 [英] Amazon product advertising API WCF4 Example

查看:152
本文介绍了亚马逊产品广告API WCF4例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让亚马逊PAAPI C#运行,但我的 ItemSearchResponse 总是空。

I try to get the Amazon PAAPI C# Example to run but my ItemSearchResponse is always null.

我所做的:


  1. 设置我的 accessKeyId SecretKey的的app.config 。 (VS2012由行为有一个无效的子元素signingBehavior的方式给出了一个警告?!)

  2. 设置< XS:元素的minOccurs =0的maxOccurs =1NAME =ImageSets> 在AWSECommerceService.wsdl

  3. Reverence.svcmap 运行自定义工具

  4. 修正的命名空间中的Reference.cs

  5. 在Program.cs中: itemSearch.AssociateTag =myassociateTag-20;

  1. set my accessKeyId and secretKey in app.config. (VS2012 gives a warning by the way that behavior has a invalid child element signingBehavior?!)
  2. set <xs:element minOccurs="0" maxOccurs="1" name="ImageSets"> in the AWSECommerceService.wsdl
  3. run custom tool on Reverence.svcmap
  4. corrected the namespaces in the Reference.cs
  5. in program.cs: itemSearch.AssociateTag = "myassociateTag-20";

我在做什么错了?
在提琴手看来,我得到了我的要求正确的反应。至少我得到的搜索结果中的XML。

what am i doing wrong? In Fiddler it seems that i am getting the right response to my request. At least i am getting search results in an xml.

推荐答案

在本例中的WSDL似乎是不正确的。

the wsdl in the example seems to be not correct.

我与一个取代它。

http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl

通过复制和粘贴,做了步2,3和4一次。现在,它的工作原理

via copy and paste and did step 2,3 and 4 again. Now it works

这篇关于亚马逊产品广告API WCF4例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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