Intuit QuickBooks Web连接器错误

时间:2015-12-06 12:22:17

标签: quickbooks

我一直在尝试将基于PHP的解决方案与QuickBooks桌面专业版集成。我正在使用PHP DevKit for QuickBooks Web Connector。

我已经能够正确设置Web连接器但是我无法连接到应用程序。每次我收到以下错误消息:

20151206.12:22:43 UTC   : UpdateThisScheduledApp() : Performing SCHEDULED UPDATE for application = QuickBooks Integrator
20151206.12:22:43 UTC   : QBWebConnector.RegistryManager.getUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock = FALSE
20151206.12:22:43 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to True
20151206.12:22:43 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session locked *********************
20151206.12:22:43 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : Initiated connection to the following application.
20151206.12:22:43 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppName: QuickBooks Integrator
20151206.12:22:43 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppUniqueName (if available): QuickBooks Integrator
20151206.12:22:43 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppURL: http://localhost/qb/quickbooks-php-master/docs/web_connector/example_web_connector.php
20151206.12:22:43 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : *** Calling serverVersion().
20151206.12:22:44 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : Actual error received from web service for serverVersion call: <Client foun......
20151206.12:22:44 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : This application does not contain support for serverVersion. Allowing update operation for backward compatibility.
20151206.12:22:44 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : *** Calling clientVersion() with following parameter:<productVersion="2.2.0.34">
20151206.12:22:44 UTC   : QBWebConnector.SOAPWebService.updateWS() : Actual error received from web service for clientVersion call: <Client foun......
20151206.12:22:44 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : This application does not contain support for clientVersion. Allowing update operation for backward compatibility.
20151206.12:22:44 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : Authenticating to application 'QuickBooks Integrator', username = 'quickbooks'
20151206.12:22:45 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : *** Calling authenticate() with following parameters:<userName="quickbooks"><password=<MaskedForSecurity>
20151206.12:22:45 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : QBWC1012: Authentication failed due to following error message.
Client fou......
20151206.12:22:45 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to False
20151206.12:22:45 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session unlocked *********************
20151206.12:22:45 UTC   : QBWebConnector.WebServiceManager.DoUpdate() : Update completed with errors. See log (QWClog.txt) for details.
20151206.12:22:45 UTC   : UpdateThisScheduledApp() : QBWC1031: Update completed with some error. Application has been notified of the error accordingly. See QWCLog for further information.

enter image description here

VERBOSE记录日志:

20151207.15:38:23 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : updateWS() for application = 'QuickBooks Integrator' has STARTED
20151207.15:38:23 UTC   : QBWebConnector.RegistryManager.getUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock = FALSE
20151207.15:38:23 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to True
20151207.15:38:23 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session locked *********************
20151207.15:38:23 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : Initiated connection to the following application.
20151207.15:38:23 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppName: QuickBooks Integrator
20151207.15:38:23 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppUniqueName (if available): QuickBooks Integrator
20151207.15:38:23 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppURL: http://localhost/qb/quickbooks-php-master/docs/web_connector/example_web_connector.php
20151207.15:38:23 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : *** Calling serverVersion().
20151207.15:38:23 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : Actual error received from web service for serverVersion call: <Response is not well-formed XML.>. For backward compatibility of all webservers, QBWC will catch all errors under app-not-supporting-serverVersion.
20151207.15:38:24 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : This application does not contain support for serverVersion. Allowing update operation for backward compatibility.
20151207.15:38:24 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : *** Calling clientVersion() with following parameter:<productVersion="2.2.0.34">
20151207.15:38:24 UTC   : QBWebConnector.SOAPWebService.updateWS() : Actual error received from web service for clientVersion call: <Response is not well-formed XML.>. For backward compatibility of all webservers, QBWC will catch all errors under app-not-supporting-clientVersion.
20151207.15:38:24 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : This application does not contain support for clientVersion. Allowing update operation for backward compatibility.
20151207.15:38:24 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : Authenticating to application 'QuickBooks Integrator', username = 'quickbooks'
20151207.15:38:24 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : *** Calling authenticate() with following parameters:<userName="quickbooks"><password=<MaskedForSecurity>
20151207.15:38:24 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : QBWC1012: Authentication failed due to following error message.
Response is not well-formed XML.
More info:
StackTrace =    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at QBWebConnector.localhost.WCWebServiceDoc.authenticate(String strUserName, String strPassword)
   at QBWebConnector.localhost.WCWebService.authenticate(String strUserName, String strPassword)
   at QBWebConnector.SOAPWebService.authenticate(String UserName, String Password)
   at QBWebConnector.WebService.do_authenticate(String& ticket, String& companyFileName)
Source = System.Web.Services
20151207.15:38:24 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to False
20151207.15:38:24 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session unlocked *********************
20151207.15:38:24 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : Update completed with errors. See log (QWClog.txt) for details.

2 个答案:

答案 0 :(得分:0)

任何时候你看到这个:

  

响应不是格式良好的XML。

您有大约99.9%的机会遇到PHP或SQL错误。

  • 您检查过PHP错误日志了吗?它说什么?

  • 如果您访问Web连接器在浏览器中访问的URL,您会看到什么?你看到有什么错误吗?

答案 1 :(得分:0)

我遇到了与example_web_connector.php文件类似的问题,因此我将第40行更改为此

ini_set('display_errors', 0);