Purchase Orders error “There is an error in XML document (0, 0)”

拥有回忆 提交于 2019-12-25 02:57:14

问题


I have a c# web application, Integrated with QuickBooks Online Every thing is running till i add the Following Purchase Orders Code:

Intuit.Ipp.Data.Qbo.PurchaseOrder oPurchaseOrder = new Intuit.Ipp.Data.Qbo.PurchaseOrder();
IList<Intuit.Ipp.Data.Qbo.PurchaseOrder> ModifiedPOs = commonService.FindAll(oPurchaseOrder,1,100) as IList<Intuit.Ipp.Data.Qbo.PurchaseOrder>;

an error appear with this description : "There is an error in XML document (0, 0)"

Note: i'm using version 2.1.4.0.

any Advice ?


回答1:


Please configure the logger in DEBUG mode and capture the raw request and response XML. Without that it is hard to find the exact issue. It could because of some non XML characters which is present in the XML(API Payload) and that's why serialization is failing.

Ref - https://developer.intuit.com/docs/0025_quickbooksapi/0055_devkits/0150_ipp_.net_devkit_3.0/logging

You can try ApiExplorer tool to test this. https://developer.intuit.com/apiexplorer?apiname=V3QBO

Thanks



来源:https://stackoverflow.com/questions/24736815/purchase-orders-error-there-is-an-error-in-xml-document-0-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!