Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 亚马逊MWS发布订单履行数据未提交_Xml_Amazon Web Services_Amazon_Amazon Mws - Fatal编程技术网

Xml 亚马逊MWS发布订单履行数据未提交

Xml 亚马逊MWS发布订单履行数据未提交,xml,amazon-web-services,amazon,amazon-mws,Xml,Amazon Web Services,Amazon,Amazon Mws,我已经看了这么久,想找出我的XML结构有什么问题,但现在可能看不到它。有人能帮忙吗 当我在草稿行中运行此命令时,在尝试提交之后,我不断发现我们无法处理XML提要,因为一个或多个项无效。请重新提交提要 <?xml version="1.0" encoding="UTF-8"?> <AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="a

我已经看了这么久,想找出我的XML结构有什么问题,但现在可能看不到它。有人能帮忙吗

当我在草稿行中运行此命令时,在尝试提交之后,我不断发现我们无法处理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>
这取自样本的示例提要:

<?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中是否需要更新

任何帮助都将不胜感激

非常感谢,

杰森

看看这个链接吧

我唯一能注意到的是完成日期

<FulfillmentDate>2014-07-22T23:59:59-07:00</FulfillmentDate>
OperationType是消息的一部分,而不是订单履行的一部分。切换线路10和11,如下所示:

<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<OrderFulfillment>

尝试使用新的DateTime“0天”和新的DateTimeZone“UTC”作为FulfillmentDate。它已排序。非常感谢。我快疯了。最好的节日欢呼