2013-04-11 157 views
0

我無法獲取QuickBooks Web連接器。當它運行日誌說QBWC1013:連接到QuickBooks時出錯。 0x80040408

...

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中的應用程序允許自動登錄。我讀過,如果沒有從服務中提供文件,那麼打開的文件將被使用,但它不起作用。我也從我的肥皂服務返回了路徑,但它仍然沒有工作,我重新啓動並再次嘗試,但沒有奏效,我做了一個新公司測試意志,它沒有工作。

任何想法都會有所幫助。

+0

確保在授權應用程序時,您在無人蔘與模式下選擇允許。 – 2013-04-11 16:23:15

+0

我開始在我的qwc文件中返回FileID作爲通過身份驗證返回的數組中的第一個元素,現在似乎可以工作。第二個元素,我留下一個空字符串。 – user2271009 2013-04-11 17:25:30

回答

3

這是你的問題 - 你返回錯誤的東西:

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:\路徑\爲\ file.QBW「)或字符串‘無’(如果有什麼可以做 )或字符串‘NVU’(如果登錄無效)
  • authRet [2] =這 是可選,則可以發送一個空字符串或指示 分鐘數做下一次更新之前等待
  • authRet [3] =這是可選,則可以發送一個空字符串的整數或指示Web連接器在更新會話之間允許的最小秒數

這在我們的QuickBooks integration wiki上有更詳細的記錄。

你做了什麼來解決它:

我開始通過身份驗證返回的數組返回中寫到FileID我QWC文件作爲第一個元素 ,似乎現在的工作。

是極其不安全的 - 這意味着,任何人誰發現寫到FileID(這絕對是蠻力,能夠或發現,能夠通過社會工程策略)將能夠連接到您的SOAP的Web服務,並提取潛在的敏感會計信息(信用卡號碼,客戶等)

您應該修復您的服務以返回一個有效的,短暫的會話令牌。

+1

我有同樣的問題。你的參數結構似乎與[程序員指南](https://developer-static.intuit.com/qbSDK-current/doc/PDF/QBWC_proguide.pdf)相矛盾,但是因爲你說的對我有用,所以很難辯論與結果。該指南是可怕的過時或什麼的? – JohnB 2014-02-25 23:08:30

+1

沒關係,指南與自己相矛盾。正確的結構,第62頁概述了一個不正確或過時的版本 – JohnB 2014-02-26 00:35:46

+2

我向Intuit報告了這一點:https://intuitpartnerplatform.lc.intuit.com/questions/833883-docs-error-web-connector-pdf-describes-不正確返回值?事件= new_question – 2014-02-26 01:39:59