将提要提交到亚马逊MWS时,如何解决“格式错误的xml”错误?

时间:2019-08-06 12:51:44

标签: java xml sdk integration amazon-mws

我正在尝试发送_POST_ORDER_FULFILLMENT_DATA_类型的提要,但出现错误

<ResultCode>Error</ResultCode>
<ResultMessageCode>50001</ResultMessageCode>
<ResultDescription>The XML you submitted is ill-formed at the Amazon Envelope XML level at (or near) line 3, column 18.</ResultDescription>

这就是我要发送的内容

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <MessageType>OrderFulfillment</MessageType>
    <Header>
        <documentVersion>1.01</documentVersion>
        <merchantIdentifier>A4DPWIBKRJAR</merchantIdentifier>
    </Header>
    <Message>
        <messageID>9c23467c-c3da-4afb-b141-379d87c960cb</messageID>
        <orderFulfillment>
            <amazonOrderID>123123123</amazonOrderID>
            <fulfillmentDate>2019-08-05</fulfillmentDate>
            <fulfillmentData>
                <carrierCode>USPS</carrierCode>
                <shipperTrackingNumber>123123123</shipperTrackingNumber>
            </fulfillmentData>
            <item>
                <amazonOrderItemCode>123123123</amazonOrderItemCode>
                <quantity>1</quantity>
            </item>
        </orderFulfillment>
    </Message>
</AmazonEnvelope>

与本示例https://sellercentral.amazon.com/gp/help/help.html?itemID=200387170&

中提供的内容相同

也有类似的帖子,但是我尝试发送此xml而不进行任何格式化都没有成功 XML Error: Ill-formed at the Amazon Envelope XML level

0 个答案:

没有答案