2017-12-01 10 views
0

qbxmlのバージョン13.0によると無効です。 XMLに含まれておらず、期待しているものとして必要とされないXML要素をリストするバリデーターはなぜですか?qbxml QuickBooks XML BillAddressは、DTD

私が見たすべての参考文献には、InvoiceAddのBillAddressの後のメモがリストされています。

https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html

Line: 20 
LinePos: 22 
Src Text: <BillAddress> 
Reason: Element content is invalid according to the DTD/Schema. 
Expecting: ItemSalesTaxRef, Memo, CustomerMsgRef, IsToBePrinted, IsToBeEmailed, IsTaxIncluded, CustomerSalesTaxCodeRef, Other, Exchange.... 

<?xml version="1.0" encoding="utf-8"?> 
<?qbxml version="13.0"?> 
<QBXML> 
    <QBXMLMsgsRq onError="continueOnError"> 
    <InvoiceAddRq requestID="43"> 
     <InvoiceAdd> 
     <CustomerRef> 
      <FullName>GORILLA SPRAY FOAM LLC</FullName> 
     </CustomerRef> 
     <ARAccountRef> 
      <FullName>Accounts Receivable</FullName> 
     </ARAccountRef> 
     <TxnDate>2017-12-01</TxnDate> 
     <RefNumber>9690</RefNumber> 
     <PONumber>JN 102317</PONumber> 
     <ShipDate>2017-10-23</ShipDate> 
     <ShipMethodRef> 
      <FullName>x</FullName> 
     </ShipMethodRef> 
     <BillAddress> 
      <Addr1>GORILLA SPRAY FOAM LLC</Addr1> 
      <Addr2>2332 HIGHWAY 65</Addr2> 
      <City>MORA</City> 
      <State>MN</State> 
      <PostalCode>55051</PostalCode> 
     </BillAddress> 
     <InvoiceLineAdd> 
      <ItemRef> 
      <FullName>S 8000</FullName> 
      </ItemRef> 
      <Desc>x</Desc> 
      <Quantity>2</Quantity> 
      <Amount>x</Amount> 
     </InvoiceLineAdd> 
     <InvoiceLineAdd> 
      <ItemRef> 
      <FullName>S 8020</FullName> 
      </ItemRef> 
      <Desc>x</Desc> 
      <Quantity>2</Quantity> 
      <Amount>x</Amount> 
     </InvoiceLineAdd> 
     <InvoiceLineAdd> 
      <ItemRef> 
      <FullName>Delivery Charge</FullName> 
      </ItemRef> 
      <Desc>Delivery Charge</Desc> 
      <Amount>75.00</Amount> 
     </InvoiceLineAdd> 
     <InvoiceLineAdd> 
      <ItemRef> 
      <FullName>Sales Tax</FullName> 
      </ItemRef> 
      <Desc>Minnesota Sales Tax</Desc> 
      <Amount>2.58</Amount> 
     </InvoiceLineAdd> 
     </InvoiceAdd> 
    </InvoiceAddRq> 
    </QBXMLMsgsRq> 
</QBXML> 

答えて

1

qbXMLのタグの順序は重要です。

OSRはShipMethodShipDate、およびPONumberタグがBillAddressタグの後に来る、あなたはその順序に従わなければならないこと、例えば、表示されている場合。

はOSRを参照してください:

https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html

あなたのタグが正しい順序になっていることを確認してください。現在、ShipDate,ShipMethodRef、およびPONumberタグがBillAddressより前であるためではありません。

+0

ありがとうキーズ、私はそれを逃したかどうかはわかりません。あなたのライブラリーとサイトは、Webコネクターを稼働させる上で非常に貴重です。 –

関連する問題