我正在调用amazon MWS服务来更新项目数量但是当我调用“GetGetFeedSubmissionResult”来了解它返回错误的状态时。我不知道这里有什么问题。
提交Feed请求XML
<?xml version="1.0" encoding="utf-8" ?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>SellerId</MerchantIdentifier>
</Header>
<MessageType>Inventory</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Inventory>
<SKU>SKUIID1223</SKU>
<Quantity>4</Quantity>
</Inventory>
</Message>
</AmazonEnvelope>
以下是GetSibmitFeedResult api
的回复<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.02</DocumentVersion>
<MerchantIdentifier>Seller Id</MerchantIdentifier>
</Header>
<MessageType>ProcessingReport</MessageType>
<Message>
<MessageID>1</MessageID>
<ProcessingReport>
<DocumentTransactionID>50387016369</DocumentTransactionID>
<StatusCode>Complete</StatusCode>
<ProcessingSummary>
<MessagesProcessed>0</MessagesProcessed>
<MessagesSuccessful>0</MessagesSuccessful>
<MessagesWithError>1</MessagesWithError>
<MessagesWithWarning>0</MessagesWithWarning>
</ProcessingSummary>
<Result>
<MessageID>0</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>5002</ResultMessageCode>
<ResultDescription>Error validating XML document - failed to locate "Product" within "Message" element.</ResultDescription>
</Result>
</ProcessingReport>
</Message>
</AmazonEnvelope>
我可以知道原因吗?
答案 0 :(得分:3)
解决了这个问题,我使用了错误的FeedType,_POST_INVENTORY_AVAILABILITY_DATA是正确的。