我正在尝试让 Amazon Order Fulfillment API 正常工作,但遇到了问题。当我提交 HTTP 请求时,响应说它已提交,但是当我查看亚马逊的“上传订单相关文件”部分时,它说有一个错误。我得到的错误如下所示:
The XML you submitted is ill-formed at the Amazon Envelope XML level at (or near) line 2, column 18.
这是我的 XML 请求
<?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>M_MySite_1234567</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
<OrderFulfillment>
<AmazonOrderID>112-0023859-8293023</AmazonOrderID>
<MerchantFulfillmentID>789456123545646312</MerchantFulfillmentID>
<FulfillmentDate>2013-01-14T10:42:33</FulfillmentDate>
<FulfillmentData>
<CarrierCode>UPS</CarrierCode>
<ShippingMethod>UPS Ground</ShippingMethod>
<ShipperTrackingNumber>1Z19Y92EYW42152145</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<MerchantFulfillmentItemID>123456700000074</MerchantFulfillmentItemID>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
</Message>
</AmazonEnvelope>
我不确定我做错了什么。我正在运行 ColdFusion 9。
任何帮助,将不胜感激。
谢谢!