I'm working with amazon mws feed api in java and I'm having some problem while sending a ProductImage feed to amazon.
This is the xml I'm sending:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProductImage>
<SKU>ABCDORD0001</SKU>
<ImageType>Main</ImageType>
<ImageLocation>http://vocearancio.ingdirect.it/wp-content/uploads/2013/01/bici-1.jpeg</ImageLocation>
</ProductImage>
And this is the web service response (only the interesting part):
<Result>
<MessageID>1</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>5000</ResultMessageCode>
<ResultDescription>XML Parsing Error at Line 2, Column 15: Found unexpected element 'ProductImage' while parsing the start of this 'AmazonEnvelope' document. Children of this element will be ignored by the parser..</ResultDescription>
</Result>
I don't understand why he ignores the ProductImage tag, I'm following an example in the documentation and it should be fine.
I'm sending the feed with request.setFeedType("_POST_PRODUCT_IMAGE_DATA_");
Is it because I'm missing the Envelope part? I thought the java API did that, I had no problem with other feeds (even tough the product doesn't show in the sellecentral inventory).
This was my POST_PRODUCT_DATA feed (the fist that I should be sending, not the one above) that returned with no errors:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Product>
<SKU>ABCDORD0001</SKU>
<LaunchDate>2014-11-10T00:00:00.000+01:00</LaunchDate>
<ReleaseDate>2014-11-10T00:00:00.000+01:00</ReleaseDate>
<Condition>
<ConditionType>New</ConditionType>
</Condition>
<DescriptionData>
<Title>titolo_articolo</Title>
<Brand>brand_item</Brand>
<Description>descrizione_articolo_dett</Description>
<ItemType>sotto_categoria</ItemType>
</DescriptionData>
<ProductData>
<Sports></Sports>
</ProductData>
</Product>
I hope someone can help.