亚马逊产品广告API C# [英] Amazon Product Advertising API C#

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

问题描述

有人能告诉我使用亚马逊产品广告API,例如查找项目C#excample。所有我发现现在没有工作,因为变化



感谢



编辑:



最流行的错误是邮件正文的失败系列化:ItemSearchRequest1不能创建临时类


解决方案

有一个C#示例在这里:



http://aws.amazon.com/code/Product-Advertising-API/3941



FWIW,的我提到中的AWS线程包括这些步骤的解决方法:




这是具体步骤为2012年1月31日,修复在Visual
工作室这个问题对于.NET客户端:



1)单击Solution Explorer中的显示所有文件按钮包含亚马逊服务引用
项目。



2)展开
参考,并在编辑器中打开文件AWSECommerceService.wsdl



3 )
线584改变了maxOccurs的到1。




  < XS:元素的minOccurs =0的maxOccurs =1NAME =ImageSets> 



<块引用>

4)保存文件AWSECommerceService.wsdl



5)右键单击
Reference.svcmap,然后点击运行自定义工具



6)展开
Reference.svcmap并打开Reference.cs或Reference.vb



Can somebody tell me C# excample of using Amazon Product Advertising API, for example to lookup item. All i found is not working now because of changes.

Thanks!

edit:

the most popular error is "Failed serialization of message body: ItemSearchRequest1 cant create temporary class"

解决方案

There's a C# sample here:

http://aws.amazon.com/code/Product-Advertising-API/3941

FWIW, the AWS thread I mentioned includes these steps for a workaround:

These are the steps as of January 31, 2012 to fix this issue in Visual Studio for .Net clients:

1) Click the "Show all files" button in the Solution Explorer for the project containing the amazon service reference.

2) Expand the reference and open the AWSECommerceService.wsdl file in the editor

3) On line 584 change the "maxOccurs' to "1".

<xs:element minOccurs="0" maxOccurs="1" name="ImageSets">

4) Save the AWSECommerceService.wsdl file

5) Right click Reference.svcmap and click "Run custom tool"

6) Expand Reference.svcmap and open either Reference.cs or Reference.vb

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

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