我的工作Envirnment項目查找亞馬遜Web服務是Visual Studio 2008的+ C#與UPC
我在亞馬遜WebService的工作,我想用SOAP來從亞馬遜的數據,但是,當我試圖通過IDType = UPC給了我下面的錯誤信息,那麼我能做些什麼呢?
錯誤:
036725229884 is not a valid value for ItemId. Please change this value and retry your request
mycode的:
ItemLookupRequest request1 = new ItemLookupRequest();
request1.IdType = ItemLookupRequestIdType.UPC;
request1.IdTypeSpecified = true;
request1.ItemId = new string[] { ProductID };
request1.ResponseGroup = new string[] { "Request", "Large", "OfferFull", "BrowseNodes" };
request1.MerchantId = "All";
request1.Condition = Condition.All;
request1.SearchIndex = "Books";
注: 我如何可以添加多個SearchIndex像( 「書」, 「圖片」, 「視頻」)?
我用下面的WebService: http://webservices.amazon.com/AWSECommerceService/2009-11-01/US/AWSECommerceService.wsdl
閱讀本太:http://en.wikipedia.org/wiki/Universal_Product_Code 特別是EAN部分 –
「因此,UPC條形碼XXXXXXXXXXXX是EAN-13條形碼0XXXXXXXXXXXX」 –