向亚马逊MWS提交_POST_ORDER_FULFILLMENT_DATA_供稿时出现XML错误

时间:2015-06-16 15:43:49

标签: xml amazon-web-services xsd-validation

我在下面的Feed提交时收到错误代码25,但我无法弄清楚我的XML有什么问题。我已经查看了xsd,但仍然无法确定我提交的格式不正确的内容。

<?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>**REMOVED**</MerchantIdentifier>
        </Header>
        <MessageType>OrderFulfillment</MessageType>
        <PurgeAndReplace>false</PurgeAndReplace>
        <Message>
        <MessageID>1</MessageID>
<OrderFulfillment>
                <MerchantOrderID>102-4429901-2897066</MerchantOrderID>
                <MerchantFulfillmentID>1</MerchantFulfillmentID>
                <FulfillmentDate>2015-06-15T21:30:00Z+00:00</FulfillmentDate>
                <FulfillmentData>
                <CarrierCode>UPS</CarrierCode>
                <ShippingMethod>Standard</ShippingMethod>
                <ShipperTrackingNumber>1Z089F6Y0398251296</ShipperTrackingNumber>
                </FulfillmentData>
<Item>
                    <MerchantOrderItemID>FLUK_EFG120C</MerchantOrderItemID>
                    <MerchantFulfillmentItemID>FLUK_EFG120C</MerchantFulfillmentItemID>
                    <Quantity>1</Quantity>
                    </Item>
</OrderFulfillment>
</Message>
        </AmazonEnvelope>

1 个答案:

答案 0 :(得分:0)

我最终发现了我的错误。我的履行日期中的'Z'抛出错误。把它拿出来并繁荣起来吧!