【发布时间】:2013-07-03 09:26:05
【问题描述】:
在 _POST_PRODUCT_DATA_ 提要中,“ProductData”节点包含特定于商品所属类别的数据。项目所在的类别究竟应该如何映射到 XSD,因为(总是)似乎没有直接关系。调用“GetProductCategoriesForASIN”似乎也没有多大帮助 - “Categories”的 ProductCategoryName 有什么用? (如下)
<?xml version="1.0"?>
<GetProductCategoriesForASINResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01">
<GetProductCategoriesForASINResult>
<Self>
<ProductCategoryId>166099011</ProductCategoryId>
<ProductCategoryName>Building Sets</ProductCategoryName>
<Parent>
<ProductCategoryId>166092011</ProductCategoryId>
<ProductCategoryName>Building Toys</ProductCategoryName>
<Parent>
<ProductCategoryId>165795011</ProductCategoryId>
<ProductCategoryName>Categories</ProductCategoryName>
<Parent>
<ProductCategoryId>165793011</ProductCategoryId>
<ProductCategoryName>Categories</ProductCategoryName>
</Parent>
</Parent>
</Parent>
</Self>
</GetProductCategoriesForASINResult>
<ResponseMetadata>
<RequestId>0ce91472-4234-4222-8fd8-d56714db18ba</RequestId>
</ResponseMetadata>
</GetProductCategoriesForASINResponse>
简而言之,我真正想知道的是,对于新产品或具有现有 ASIN 的产品,如何获取类别 ID 或名称并将其映射到正确的 XSD,以便正确的类别特定选项集被退回。
谢谢。
【问题讨论】:
-
我也在这些水域游泳。针对此功能进行编程感觉非常奇怪,不知道如何以通用方式进行。从那以后你有没有找到一个体面的方法来处理这个问题?谢谢!
标签: amazon-web-services amazon-mws