计算篮子时LS Nav Web服务错误

时间:2016-01-27 18:01:48

标签: web-services microsoft-dynamics dynamics-nav

在尝试计算客户购物篮时。我在使用网络服务时遇到了麻烦。

我试图通过请求传递数据,响应是一个我不明白的错误。

网络方法:WI_NC_CALCULATE_BASKET

请求:

<?xml version="1.0" encoding="utf-8" standalone="no"?> <Request>
  <Request_ID>WI_NC_CALCULATE_BASKET</Request_ID>
  <Request_Body>
    <ItemId_Type>ItemNo</ItemId_Type>
    <MobileTransaction>
      <Id>EB39ACF3-9A94-4164-A38F-E72A32BEF371</Id>
      <MemberContactNo>ACC-0003</MemberContactNo>
      <MemberCardNo>ACC-0004</MemberCardNo>
    </MobileTransaction>
    <MobileTransactionLine>
      <Id>EB39ACF3-9A94-4164-A38F-E72A32BEF371</Id>
      <LineNo>10000</LineNo>
      <Number></Number>
      <VariantCode></VariantCode>
      <UomId></UomId>
      <Quantity>1</Quantity>
      <ExternalId>195</ExternalId>
    </MobileTransactionLine>
    <MobileTransactionLine>
      <Id>EB39ACF3-9A94-4164-A38F-E72A32BEF371</Id>
      <LineNo>20000</LineNo>
      <Number></Number>
      <VariantCode></VariantCode>
      <UomId></UomId>
      <Quantity>1</Quantity>
      <ExternalId>100</ExternalId>
    </MobileTransactionLine>
    <MobileTransactionLine>
      <Id>EB39ACF3-9A94-4164-A38F-E72A32BEF371</Id>
      <LineNo>30000</LineNo>
      <Number></Number>
      <VariantCode></VariantCode>
      <UomId></UomId>
      <Quantity>1</Quantity>
      <ExternalId>10</ExternalId>
    </MobileTransactionLine>
  </Request_Body>
</Request>

响应:

<Response>
  <Request_ID>WI_NC_CALCULATE_BASKET</Request_ID>
  <Response_Code>0040</Response_Code>
  <Response_Text>Invalid Request Field  for Source MobileTransactionLine in xml setup</Response_Text>
</Response>

任何帮助都将不胜感激。

0 个答案:

没有答案