简体   繁体   English

缺少标签“<Header> “ 为了 ”<AmazonEnvelope> “在亚马逊 MWS 提要中

[英]Missing tag "<Header>" for "<AmazonEnvelope>" in Amazon MWS Feeds

We're submitting the following feed using the SubmitFeed operation of the Feeds API section.我们将使用 Feeds API 部分的 SubmitFeed 操作提交以下 Feed。

<?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>X</MerchantIdentifier>
  </Header>
  <MessageType>CartonContentsRequest</MessageType>
  <Message>
    <MessageID>1</MessageID>
    <CartonContentsRequest>
      <ShipmentId>X</ShipmentId>
      <NumCartons>X</NumCartons>

  <Carton>
    <CartonId>X-1</CartonId>
    <Item>
      <SKU>X-1</SKU>
      <QuantityShipped>X</QuantityShipped>
      <QuantityInCase>X</QuantityInCase>
    </Item>
  </Carton>
  <Carton>
    <CartonId>X-2</CartonId>
    <Item>
      <SKU>X-1</SKU>
      <QuantityShipped>X</QuantityShipped>
      <QuantityInCase>X</QuantityInCase>
    </Item>
  </Carton>
  <Carton>
    <CartonId>X-3</CartonId>
    <Item>
      <SKU>X</SKU>
      <QuantityShipped>X</QuantityShipped>
      <QuantityInCase>X/QuantityInCase>
    </Item>
  </Carton>
  </CartonContentsRequest>
  </Message>
</AmazonEnvelope>

and get success submitting.并获得成功提交。 But then when we call GetFeedSubmissionResult we get this error:但是当我们调用 GetFeedSubmissionResult 时,我们得到了这个错误:

<Result>
  <MessageID>100001</MessageID>
  <ResultCode>Error</ResultCode>
  <ResultMessageCode>1</ResultMessageCode>
  <ResultDescription>Missing tag "<Header>" for "<AmazonEnvelope>". (FBA_INBOUND_CARTON_003)</ResultDescription>
  <AdditionalInfo>
    <SKU>-</SKU>
  </AdditionalInfo>
</Result>

I've tried everything with no success and we're clearly sending the tag Header in the Amazon Envelope.我已经尝试了一切,但都没有成功,我们显然在亚马逊信封中发送了标签标题。

Any ideas?有任何想法吗?

Thanks in advance!提前致谢!

Fixed.固定的。 It turns out I was sending a line break as the first character of the XML, breaking it all.结果是我发送了一个换行符作为 XML 的第一个字符,把它全部打断了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM