QBWC1013:连接到QuickBooks时出错。 0x80040408

时间:2013-04-11 15:42:57

标签: quickbooks intuit qbwc

我无法获取QuickBooks Web连接器。当它运行时,日志说

...

20130411.15:29:07 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : *** Calling serverVersion().
20130411.15:29:07 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : Received from serverVersion() following parameter:<serverVersionRet="testing version">
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : *** Calling clientVersion() with following parameter:<productVersion="2.1.0.27">
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : Received from clientVersion() following parameter:<clientVersionRet="">
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : This application agrees with the current version of QBWebConnector. Allowing update operation.
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : Authenticating to application 'QBServices Raw Soap', username = 'test'
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : *** Calling authenticate() with following parameters:<userName="test"><password=<MaskedForSecurity>
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.updateWS() : Received from authenticate() following parameters:<authRet[0]=""><authRet[1]="0"><authRet[2]=""><authRet[3]="">
20130411.15:29:08 UTC   : QBWebConnector.RegistryManager.setCurrentWebServiceName() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\CurrentWebServiceName has been set to QBServices Raw Soap
20130411.15:29:08 UTC   : QBWebConnector.RegistryManager.setCurrentWebServiceSessionTicket() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\CurrentWebServiceSessionTicket has been set to 
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.CheckCFNResponse() : User authenticated.
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : Done.
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.OpenConnection() : Connecting to QuickBooks...
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.handleAllOtherError() : QBWC1013: Error connecting to QuickBooks. Returning error message to application.
Could not start QuickBooks.
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.do_connectionError() : *** Calling connectionError() with following parameters:<wcTicket=""><hresult="0x80040408"><message="Could not start QuickBooks.">
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.do_connectionError() : Received from connectionError() following parameters:<tryAgain="done">
20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.OpenConnection() : Error connecting to QuickBooks. Application sent back DONE. Job ending.
20130411.15:29:08 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to False
20130411.15:29:08 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session unlocked *********************
20130411.15:29:08 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : Update completed with errors. See log (QWClog.txt) for details.
当我收到此消息时,

QuickBooks已打开。允许QuickBooks中的应用程序自动登录。我读到如果没有从服务中提供文件,那么将使用打开的文件,但它不起作用。我也从我的肥皂服务返回了路径,但它仍然无法正常工作我重新启动并再次尝试但是没有用,我创建了一个新的公司来测试它并且它不起作用。

任何想法都会有所帮助。

1 个答案:

答案 0 :(得分:4)

这是你的问题 - 你回错了:

20130411.15:29:08 UTC   : QBWebConnector.SOAPWebService.updateWS() : 
Received from authenticate() following parameters:
<authRet[0]="">
<authRet[1]="0">
<authRet[2]="">
<authRet[3]="">

要返回的正确参数集遵循以下格式:

  • authRet [0] =有效的会话票证(如果登录成功)
  • authRet [1] = QuickBooks公司文件的路径(例如 “C:\ path \ to \ file.QBW”)或字符串“none”(如果没有任何内容) do)或字符串“nvu”(如果登录无效)
  • authRet [2] =这个 是可选,您可以发送空字符串或整数表示 在进行下一次更新之前等待的分钟数
  • authRet [3] =这是可选,您可以发送一个空字符串或一个整数,表示Web连接器应该的最小秒数 在更新会话之间允许

我们在QuickBooks integration wiki上详细记录了这一点。

你做了什么来解决它:

  

我开始在qwc文件中返回FileID作为第一个元素   通过身份验证返回的数组,现在似乎可以正常工作。

非常不安全 - 这意味着任何发现FileID(通过社交工程策略绝对可以发现或能够发现)的人都能够连接到您的SOAP Web服务并提取可能敏感的会计信息(信用卡号码,客户等。)

您应该修改服务以返回有效的,短期的会话令牌。