在_POST_PRODUCT_DATA_提要中,「ProductData」節點包含特定於該項目所在類別的數據。該項目所在的類別究竟應該如何映射到XSD,因爲它不(總是)似乎是直接關係。調用「GetProductCategoriesForASIN」似乎沒有什麼幫助 - 與「類別」的ProductCategoryName有什麼關係? (如下)將amazon產品類別映射到正確的類別XSD
<?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使可以返回正確的一組特定類別的選項。
謝謝。
我也在這些水域游泳。對這個功能感覺非常奇怪的編程,不知道如何以通用的方式去做。你有沒有找到一個體面的方式來處理這個問題?謝謝! –