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

查看:25
本文介绍了QuickBooks 在解析提供的 XML 文本流时发现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 Consolibyte PHP SDK 用于 QuickBooks 桌面.当我尝试从 QuickBooks 桌面获取账单时出现此错误 -

I am using Consolibyte PHP SDK for QuickBooks Desktop. I have got this error when I have tried to get Bills from the QuickBooks Desktop-

0x80040400:QuickBooks found an error when parsing the provided XML text stream.

下面给出了 XML 请求,我认为 XML 是有效的,并且端点 BillQuery 支持 IteratiorID-

The XML Request is given below and I think the XML is valid and the endpoint BillQuery supports IteratiorID-

<?xml version="1.0" encoding="utf-8"?>
    <?qbxml version="13.0"?>
        <QBXML>
            <QBXMLMsgsRq onError="stopOnError">
                <BillQueryRq  iterator="Start"   requestID="1">
                    <MaxReturned>10</MaxReturned>
                    <FromModifiedDate>1983-01-02T12:01:01</FromModifiedDate>
                    <IncludeLineItems>true</IncludeLineItems>
                    <OwnerID>0</OwnerID>
                </BillQueryRq>  
            </QBXMLMsgsRq>
        </QBXML>

推荐答案

去查看 OSR 文档:

Go look at the OSR documentation:

FromModifiedDate 过滤器非常清楚地包装在另一个 XML 节点中:

The FromModifiedDate filter is very clearly wrapped inside another XML node:

<ModifiedDateRangeFilter> <!-- optional -->
  <FromModifiedDate >DATETIMETYPE</FromModifiedDate> <!-- optional -->
  <ToModifiedDate >DATETIMETYPE</ToModifiedDate> <!-- optional -->
</ModifiedDateRangeFilter>

修复您的 XML,使其符合 OSR 显示的内容.

Fix your XML so that it conforms to what the OSR shows.

如果您花时间进行搜索,您会发现 SDK 中包含一个 XML Validator 工具,它会准确地告诉您 XML 中的错误是什么.

If you'd taken the time to search, you'd find that there is an XML Validator tool included with the SDK which will tell you exactly what the error in your XML is.

这篇关于QuickBooks 在解析提供的 XML 文本流时发现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆