最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

NodeJS Amazon AWS提交提要通用错误

IT培训 admin 2浏览 0评论

NodeJS Amazon AWS提交提要通用错误

我正在尝试向AWS提交产品提要,但始终收到与我发送的XML相关的一般错误

我浏览了所有.xsd文件,并提出了我认为是正确的xml,但显然不是:(

错误

{
  "MessageID": "1",
  "ResultCode": "Error",
  "ResultMessageCode": "25",
  "ResultDescription": "We are unable to process the XML feed because one or more items are invalid. Please re-submit the feed."
}

我如何创建内容

const getContent = (upc) => `<?xml version="1.0" encoding="iso-8859-1"?>
<AmazonEnvelope xmlns:xsi="" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
        <DocumentVersion>1.01</DocumentVersion>
        <MerchantIdentifier>${process.env.MERCHANT_ID}</MerchantIdentifier>
    </Header>
    <MessageType>Product</MessageType>
    <Message>
        <MessageID>1</MessageID>
        <OperationType>Update</OperationType>
          <Product>
              <SKU>${upc}</SKU>
          </Product>
    </Message>
</AmazonEnvelope>` 
回答如下:

结果表明这只是xml中的值格式错误。它在xsd文件中搜索我尝试将值绑定到的特定变量的功能非常有用,然后它提供了对该值的限制(即AmazonOrderId具有与其关联的正则表达式验证,该值将值限制为123-1234567-1234567)。在为每个变量手动执行此过程之后,我终于可以提交供稿,但现在我必须具有一个正在处理的关联的OrderAcknowledgement。

NodeJS Amazon AWS提交提要通用错误

我正在尝试向AWS提交产品提要,但始终收到与我发送的XML相关的一般错误

我浏览了所有.xsd文件,并提出了我认为是正确的xml,但显然不是:(

错误

{
  "MessageID": "1",
  "ResultCode": "Error",
  "ResultMessageCode": "25",
  "ResultDescription": "We are unable to process the XML feed because one or more items are invalid. Please re-submit the feed."
}

我如何创建内容

const getContent = (upc) => `<?xml version="1.0" encoding="iso-8859-1"?>
<AmazonEnvelope xmlns:xsi="" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
        <DocumentVersion>1.01</DocumentVersion>
        <MerchantIdentifier>${process.env.MERCHANT_ID}</MerchantIdentifier>
    </Header>
    <MessageType>Product</MessageType>
    <Message>
        <MessageID>1</MessageID>
        <OperationType>Update</OperationType>
          <Product>
              <SKU>${upc}</SKU>
          </Product>
    </Message>
</AmazonEnvelope>` 
回答如下:

结果表明这只是xml中的值格式错误。它在xsd文件中搜索我尝试将值绑定到的特定变量的功能非常有用,然后它提供了对该值的限制(即AmazonOrderId具有与其关联的正则表达式验证,该值将值限制为123-1234567-1234567)。在为每个变量手动执行此过程之后,我终于可以提交供稿,但现在我必须具有一个正在处理的关联的OrderAcknowledgement。

发布评论

评论列表 (0)

  1. 暂无评论