views:

389

answers:

0

My Working Envirnment is Visual Studio 2008 + C#

I am working on Amazon WebService, I want to fetch the data from Amazon using SOAP but when I am trying to pass IDType = UPC it gives me below error message, so what can I do for this ?

Error:

"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";

Note: How can I add multiple SearchIndex like ("Books","Photo","Video")?

I have used following WebService: http://webservices.amazon.com/AWSECommerceService/2009-11-01/US/AWSECommerceService.wsdl