我想通過使用亞馬遜MWS(在php中)上傳Amazon.de市場上的產品訂閱源,但遇到錯誤「您在第8行第18列的Amazon Envelope XML級別上提交的XML格式不正確。此外,當嘗試通過暫存器(https://mws.amazonservices.de/scratchpad/index.html)上傳相同的Feed時,它會上傳。XML錯誤:亞馬遜信封XML級別在(或接近)第8行第18列的格式錯誤
這裏是我的XML請求:
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>M_RUPESH_123456</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>false</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>p-24862</SKU>
<Condition>
<ConditionType>New</ConditionType>
</Condition>
<DescriptionData>
<Title><![CDATA[2012-13 Chile Puma Home Football Shirt]]></Title>
<Brand>Puma</Brand>
<Description>description</Description>
<BulletPoint>football</BulletPoint>
<Manufacturer>Puma</Manufacturer>
<SearchTerms>football</SearchTerms>
<RecommendedBrowseNode>324078011</RecommendedBrowseNode>
<TSDLanguage>English</TSDLanguage>
</DescriptionData>
<ProductData>
<Sports>
<ProductType>SportingGoods</ProductType>
<VariationData>
<Parentage><![CDATA[parent]]></Parentage>
<VariationTheme>Size</VariationTheme>
</VariationData>
</Sports>
</ProductData>
</Product>
</Message>
<Message>
<MessageID>2</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>p-24862-Sma</SKU>
<StandardProductID>
<Type>UPC</Type>
<Value>4051412990195</Value>
</StandardProductID>
<Condition>
<ConditionType>New</ConditionType>
</Condition>
<DescriptionData>
<Title><![CDATA[2012-13 Chile Puma Home Football Shirt]]></Title>
<Brand>Puma</Brand>
<Description>description</Description>
<BulletPoint>football</BulletPoint>
<Manufacturer>Puma</Manufacturer>
<SearchTerms>football</SearchTerms>
<RecommendedBrowseNode>324078011</RecommendedBrowseNode>
<TSDLanguage>English</TSDLanguage>
</DescriptionData>
<ProductData>
<Sports>
<ProductType>SportingGoods</ProductType>
<VariationData>
<Parentage><![CDATA[child]]></Parentage>
<VariationTheme>Size</VariationTheme>
<Size>Small Adults</Size>
</VariationData>
</Sports>
</ProductData>
</Product>
</Message>
</AmazonEnvelope>
我不知道到底是什麼,我做錯了。
任何幫助,將不勝感激。
感謝
由於添加以下內容。亞馬遜很挑剔,所以經常比較你的XML和文檔中的示例是最好的選擇。 – IcedDante