从QuickBooks获取相同的数据,无论我如何更改qbXML。

huangapple go评论95阅读模式
英文:

Getting the same data from the QuickBooks no matter how I change the qbXML

问题

I just started learning the QuickBooks, able to successfully send the XML requests, but a bit confused about what I get back.

我刚刚开始学习QuickBooks,能够成功发送XML请求,但对于返回的内容感到有些困惑。

I try different request types, CheckQueryRq, VendorQueryRq, InvoiceQueryRq but ALWAYS get back the same identical data.

我尝试了不同的请求类型,如CheckQueryRq、VendorQueryRq、InvoiceQueryRq,但始终收到相同的数据。

Here are my XMLs

这是我的XML:

<xml version="1.0" encoding="utf-8" ?>




true


<xml version="1.0" encoding="utf-8" ?>




true


<xml version="1.0" encoding="utf-8" ?>




true


为什么这些qb XML返回相同的数据?

这些qb XML为什么返回相同的数据?

Thank you in advance.

提前感谢您。

英文:

I just started learning the QuickBooks, able to successfully send the XML requests, but a bit confused about what I get back

I try different request types, CheckQueryRq, VendorQueryRq, InvoiceQueryRq but ALWAYS get back the same identical data

Here are my XML's

&lt;xml version=&quot;&quot;1.0&quot;&quot; encoding=&quot;&quot;utf-8&quot;&quot; ?&gt;
&lt;qbxml version=&quot;&quot;12.0&quot;&quot;?&gt; 
&lt;QBXML&gt;
            &lt;QBXMLMsgsRq onError=&quot;&quot;stopOnError&quot;&quot;&gt;
                &lt;CheckQueryRq&gt;
                    &lt;IncludeLineItems&gt;true&lt;/IncludeLineItems&gt;
                &lt;/CheckQueryRq&gt;
            &lt;/QBXMLMsgsRq&gt;
&lt;/QBXML&gt;

&lt;xml version=&quot;&quot;1.0&quot;&quot; encoding=&quot;&quot;utf-8&quot;&quot; ?&gt;
&lt;qbxml version=&quot;&quot;12.0&quot;&quot;?&gt; 
&lt;QBXML&gt;
            &lt;QBXMLMsgsRq onError=&quot;&quot;stopOnError&quot;&quot;&gt;
                &lt;VendorQueryRq&gt;
                    &lt;IncludeLineItems&gt;true&lt;/IncludeLineItems&gt;
                &lt;/VendorQueryRq&gt;
            &lt;/QBXMLMsgsRq&gt;
&lt;/QBXML&gt;

&lt;xml version=&quot;&quot;1.0&quot;&quot; encoding=&quot;&quot;utf-8&quot;&quot; ?&gt;
&lt;qbxml version=&quot;&quot;12.0&quot;&quot;?&gt; 
&lt;QBXML&gt;
            &lt;QBXMLMsgsRq onError=&quot;&quot;stopOnError&quot;&quot;&gt;
                &lt;InvoiceQueryRq&gt;
                  &lt;IncludeLineItems&gt;true&lt;/IncludeLineItems&gt;
                &lt;/InvoiceQueryRq&gt;
            &lt;/QBXMLMsgsRq&gt;
&lt;/QBXML&gt;

Why do those qb XML's return the same identical data?

Thank you in advance

答案1

得分: 0

以下是正确的XML格式:

<?xml version="1.0" encoding="UTF-8"?>
<?qbxml version="7.0"?>
<QBXML>
    <QBXMLMsgsRq onError="continueOnError">
        <CheckQueryRq requestID="0">
        </CheckQueryRq>
    </QBXMLMsgsRq>
</QBXML>

<?xml version="1.0" encoding="UTF-8"?>
<?qbxml version="7.0"?>
<QBXML>
    <QBXMLMsgsRq onError="continueOnError">
        <VendorQueryRq requestID="0">
        </VendorQueryRq>
    </QBXMLMsgsRq>
</QBXML>

<?xml version="1.0" encoding="UTF-8"?>
<?qbxml version="7.0"?>
<QBXML>
    <QBXMLMsgsRq onError="continueOnError">
        <InvoiceQueryRq requestID="0">
        </InvoiceQueryRq>
    </QBXMLMsgsRq>
</QBXML>
英文:

Found an answer, none of the above XML's were in a correct format, and I was getting the data back from the request while I was supposed to get the data back from the response

Here are the correct XML's

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;?qbxml version=&quot;7.0&quot;?&gt;
&lt;QBXML&gt;
     &lt;QBXMLMsgsRq onError=&quot;continueOnError&quot;&gt;
           &lt;CheckQueryRq requestID=&quot;0&quot;&gt;
            &lt;/CheckQueryRq&gt;
     &lt;/QBXMLMsgsRq&gt;
&lt;/QBXML&gt;

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;?qbxml version=&quot;7.0&quot;?&gt;
&lt;QBXML&gt;
     &lt;QBXMLMsgsRq onError=&quot;continueOnError&quot;&gt;
           &lt;VendorQueryRq requestID=&quot;0&quot;&gt;
            &lt;/VendorQueryRq&gt;
     &lt;/QBXMLMsgsRq&gt;
&lt;/QBXML&gt;

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;?qbxml version=&quot;7.0&quot;?&gt;
&lt;QBXML&gt;
     &lt;QBXMLMsgsRq onError=&quot;continueOnError&quot;&gt;
           &lt;InvoiceQueryRq requestID=&quot;0&quot;&gt;
            &lt;/InvoiceQueryRq&gt;
     &lt;/QBXMLMsgsRq&gt;
&lt;/QBXML&gt;

huangapple
  • 本文由 发表于 2023年5月17日 09:27:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/76268018.html
  • qbxml
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定