sanmao a620ca071f | ||
---|---|---|
docs | ||
src/main | ||
.gitignore | ||
README.md | ||
amazone-xsd-demo.iml | ||
pom.xml |
README.md
Amazon Selling Partner Data XSDs
The files linked below are samples of our XML schema documents (XSDs).
You can use the JAXB xjc command to convert XSD to bean. See below for details:
xjc H:\amazon-selling-partner-data-xsds\src\main\resources\xsds\Product.xsd -d H:\amazon-selling-partner-data-xsds\src\main\java\ -b H:\amazon-selling-partner-data-xsds\src\main\resources\binding.xml -p com.amazon.SellingPartnerAPI.model -encoding UTF-8
**# 注意实现 **
- 1、重新生成时,需更改内部类嵌套重名问题,可通过mvn install定位异常类,并逐一解决;
- 2、BBFCRatingType与BBFCRatingType1内容一致,删除BBFCRatingType1,并更改影响受影响的类。
(出现这种情况的原因是:多个xsd存在相同类时,无法生成,只能通过更改类名解决。)