简体   繁体   English

带Web连接器的QuickBooks查询/添加供应商

[英]QuickBooks Query/Add vendor with Web Connector

I have QuickBooks Web Connector up and running and can successfully run the SDK web service example. 我已经启动并运行QuickBooks Web Connector,并且可以成功运行SDK Web服务示例。 I am now trying to query for a vendor and add if it doesn't exist. 我现在正尝试查询供应商,并添加它(如果不存在)。

However, I am getting the following error on my initial query: 但是,我在初始查询中遇到以下错误:

QuickBooks found an error when parsing the provided XML text stream QuickBooks在解析提供的XML文本流时发现错误

There are no illegal characters in the XML. XML中没有非法字符。 What I am sending: 我发送的是:

<?xml version="1.0"?>
<?qbxml version="4.0"?>
<QBXML>
    <QBXMLMsgsRq onError="stopOnError">
        <VendorQueryRq requestID="1">
            <FullName>My Vendor</FullName>
            <MaxReturned>1</MaxReturned>
        </VendorQueryRq>
    </QBXMLMsgsRq>
</QBXML>

I'm looking for a vendor query and add example and an XSD if possible. 我正在寻找供应商查询,并在可能的情况下添加示例和XSD。

Since you're querying by FullName , and FullName is a unique key in QuickBooks, you can't also use MaxReturned (since it's a unique key, you can always only get a maximum of 1 result back). 由于使用FullName查询,并且FullName是QuickBooks中的唯一键,因此您也不能使用MaxReturned (因为它是唯一键,所以您最多只能返回1个结果)。

<?xml version="1.0"?>
<?qbxml version="4.0"?>
<QBXML>
    <QBXMLMsgsRq onError="stopOnError">
        <VendorQueryRq requestID="1">
            <FullName>My Vendor</FullName>
        </VendorQueryRq>
    </QBXMLMsgsRq>
</QBXML>

The OSR is always the best source for qbXML: OSR始终是qbXML的最佳来源:

We also have a wiki with some example requests on it over here: 我们还有一个维基,上面有一些示例请求:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM