【发布时间】:2015-01-22 23:19:07
【问题描述】:
我正在做一个项目,使用 C# 中的 MWS 将产品上传到亚马逊。我有他们的类库,并尝试从 XSD 文件生成类,就像我为其他类似项目所做的那样。但是,运行 xsd.exe 来生成类会引发错误。如:
Error generating classes for schema 'amzn-envelope'. - Schema with targetNamespace='' has invalid syntax. The simpleType 'BluRayRegionType' has already been declared. Line 130, position 3.
xsd 文件有很多包含并且确实有多个引用。我是否缺少标准的解决方法/解决方案?还是亚马逊的 XSD 文件不能用于生成类?如果它们不可用,我该怎么做才能做到这一点?
编辑:
不幸的是,XSD 需要在亚马逊卖家中心登录,需要支付卖家账户,所以我无法链接它们。
这个问题:Is there a (C#) library that will create feeds for Amazon Marketplace Web Services? 类似,也未解决。
【问题讨论】:
-
这个 XSD 除了 WSDL 什么都没有?
-
@Amit 我不知道你的意思是什么
-
你在说什么 XSD 文件?我从developer.amazonservices.com/doc/bde/feeds/v20090901/…下载了C#客户端库,里面根本没有XSD文件。
-
你能链接到你正在使用的 XSD 文件吗?
-
我编辑了我的问题。我无法链接 XSD 文件,因为它们在亚马逊上使用卖家帐户登录。我希望有人对我有最近的经验和解决方法。
标签: c# xsd amazon-mws