英文:
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" ?>
<xml version="1.0" encoding="utf-8" ?>
<xml version="1.0" encoding="utf-8" ?>
为什么这些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
<xml version=""1.0"" encoding=""utf-8"" ?>
<qbxml version=""12.0""?>
<QBXML>
<QBXMLMsgsRq onError=""stopOnError"">
<CheckQueryRq>
<IncludeLineItems>true</IncludeLineItems>
</CheckQueryRq>
</QBXMLMsgsRq>
</QBXML>
<xml version=""1.0"" encoding=""utf-8"" ?>
<qbxml version=""12.0""?>
<QBXML>
<QBXMLMsgsRq onError=""stopOnError"">
<VendorQueryRq>
<IncludeLineItems>true</IncludeLineItems>
</VendorQueryRq>
</QBXMLMsgsRq>
</QBXML>
<xml version=""1.0"" encoding=""utf-8"" ?>
<qbxml version=""12.0""?>
<QBXML>
<QBXMLMsgsRq onError=""stopOnError"">
<InvoiceQueryRq>
<IncludeLineItems>true</IncludeLineItems>
</InvoiceQueryRq>
</QBXMLMsgsRq>
</QBXML>
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
<?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>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论