我已經看了這麼久才發現我的XML結構有什麼問題,但現在可能無法看到它。誰能幫忙?亞馬遜MWS _POST_ORDER_FULFILLMENT_DATA_不提交
當我運行這個試用版時,在試圖提交後,我一直收到「我們無法處理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>XXXXXXXXXXXXX</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
<OrderFulfillment>
<OperationType>Update</OperationType>
<AmazonOrderID>XXX-XXXXXXX-XXXXXXX</AmazonOrderID>
<FulfillmentDate>2014-12-19T15:09:51+00:00</FulfillmentDate>
<FulfillmentData>
<CarrierName>FedEx</CarrierName>
<ShippingMethod>Standard</ShippingMethod>
<ShipperTrackingNumber>XXXXXXXX</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>XXXXXXXXXXXXXX</AmazonOrderItemCode>
<Quantity>8</Quantity>
</Item>
</OrderFulfillment>
</Message>
</AmazonEnvelope>
這是從示例Feed時所採取的樣本:
<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>123456</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<OrderFulfillment>
<AmazonOrderID>204-3070364-1550743</AmazonOrderID>
<FulfillmentDate>2014-07-22T23:59:59-07:00</FulfillmentDate>
<FulfillmentData>
<CarrierName>Contact Us for Details</CarrierName>
<ShippingMethod>Standard</ShippingMethod>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>42197908407194</AmazonOrderItemCode>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
</Message>
</AmazonEnvelope>
我也去掉「更新」,因爲我不知道這是在XSD需要。
任何幫助將大大,非常感謝。
非常感謝,
傑森
嘗試新的DateTime('0 Days',new DateTimeZone('UTC'))for FulfillmentDate。 –