2013-03-12 156 views
1

我無法讓QuickBooks從Web連接器啓動。我傳遞有效的文件路徑,根據文檔,一切看起來都是正確的。QBWC錯誤QBWC1013:「無法啓動QuickBooks」。

  • QBWC版本是2.1.0.3.0
  • QB版本是溫家寶承包商版2010

如果我的QuickBooks已經打開,Web連接器運行正常。如果它不開放,我得到日誌的QBWC1013錯誤...

相關部分:

20130312.14:14:56 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : Initiated connection to the following application. 
20130312.14:14:56 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : AppName: FOO 
20130312.14:14:56 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : AppUniqueName (if available): FOO 
20130312.14:14:56 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : AppURL: https://www.foo.com/server.php 
20130312.14:14:56 UTC : QBWebConnector.SOAPWebService.do_serverVersion() : *** Calling serverVersion(). 
20130312.14:14:56 UTC : QBWebConnector.SOAPWebService.do_serverVersion() : Received from serverVersion() following parameter:<serverVersionRet="PHP QuickBooks SOAP Server v1.5.3 at /server.php"> 
20130312.14:14:56 UTC : QBWebConnector.SOAPWebService.do_clientVersion() : *** Calling clientVersion() with following parameter:<productVersion="2.1.0.30"> 
20130312.14:14:57 UTC : QBWebConnector.SOAPWebService.do_clientVersion() : Received from clientVersion() following parameter:<clientVersionRet=""> 
20130312.14:14:57 UTC : QBWebConnector.SOAPWebService.do_clientVersion() : This application agrees with the current version of QBWebConnector. Allowing update operation. 
20130312.14:14:57 UTC : QBWebConnector.SOAPWebService.do_authenticate() : Authenticating to application 'FOO', username = 'foo' 
20130312.14:14:57 UTC : QBWebConnector.SOAPWebService.do_authenticate() : *** Calling authenticate() with following parameters:<userName="foo"><password=<MaskedForSecurity> 
20130312.14:14:58 UTC : QBWebConnector.SOAPWebService.updateWS() : Received from authenticate() following parameters:<authRet[0]="91f62aac622b49ad483f20ef9d7729a3"><authRet[1]=""\\FOOSERVER\Users\Public\Documents\Intuit\QuickBooks\Company Files\Some Company File Inc..QBW""><authRet[2]=""><authRet[3]=""> 
20130312.14:14:58 UTC : QBWebConnector.RegistryManager.setCurrentWebServiceName() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\CurrentWebServiceName has been set to FOO 
20130312.14:14:58 UTC : QBWebConnector.RegistryManager.setCurrentWebServiceSessionTicket() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\CurrentWebServiceSessionTicket has been set to 91f62aac622b49ad483f20ef9d7729a3 
20130312.14:14:58 UTC : QBWebConnector.SOAPWebService.CheckCFNResponse() : User authenticated. 
20130312.14:14:58 UTC : QBWebConnector.SOAPWebService.do_authenticate() : Done. 
20130312.14:14:58 UTC : QBWebConnector.SOAPWebService.OpenConnection() : Connecting to QuickBooks... 
20130312.14:14:58 UTC : QBWebConnector.SOAPWebService.handleAllOtherError() : QBWC1013: Error connecting to QuickBooks. Returning error message to application. 
Could not start QuickBooks. 
20130312.14:14:58 UTC : QBWebConnector.SOAPWebService.do_connectionError() : *** Calling connectionError() with following parameters:<wcTicket="91f62aac622b49ad483f20ef9d7729a3"><hresult="0x80040408"><message="Could not start QuickBooks."> 
20130312.14:14:59 UTC : QBWebConnector.SOAPWebService.do_connectionError() : Received from connectionError() following parameters:<tryAgain="done"> 
20130312.14:14:59 UTC : QBWebConnector.SOAPWebService.OpenConnection() : Error connecting to QuickBooks. Application sent back DONE. Job ending. 
20130312.14:14:59 UTC : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to False 
20130312.14:14:59 UTC : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session unlocked ********************* 
20130312.14:14:59 UTC : QBWebConnector.WebServiceManager.DoUpdateSelected() : Update completed with errors. See log (QWClog.txt) for details. 

回答

3

我會假設你的QWC文件是正確的格式。

在有可能看起來像這樣

<QBWCXML> 
    <AppName>Example WS</AppName> 
    <AppID></AppID> 
    <AppURL>https://localhost/Quickbooks.asmx</AppURL> 
    <AppDescription>Example Service Service</AppDescription> 
    <AppSupport>https://localhost/</AppSupport> 
    <UserName>Etile</UserName> 
    <OwnerID>{XXXXB9B1-86F1-4fcc-B1EE-566DE1813D20}</OwnerID> 
    <FileID>{XXXX4FB5-33D9-4815-AC85-BC87A7E7D1EB}</FileID> 
    <QBType>QBFS</QBType> 
    <Scheduler> 
    <RunEveryNMinutes>1</RunEveryNMinutes> 
    </Scheduler> 
</QBWCXML> 

當您添加應用程序的QuickBooks的Web連接器,系統將提示您允許的QuickBooks數據的應用程序訪問。您需要選擇最後一個選項「是,始終;允許訪問即使QuickBooks中沒有運行

enter image description here

而且不要忘了完整路徑從Web服務的返回到公司文件authenticate()方法。

了一個SOAP響應將是:

<?xml version="1.0" encoding="utf-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://developer.intuit.com/"> 
    <SOAP-ENV:Body> 
    <ns1:authenticateResponse> 
     <ns1:authenticateResult> 
     <ns1:string>1e3ea2ed-a734-03e4-ed8c-80eb12f19845</ns1:string> 
     <ns1:string>C:\Quickbooks Company File.QBW</ns1:string> 
     </ns1:authenticateResult> 
    </ns1:authenticateResponse> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

請注意,如果您正在使用quickbooks-php,該文件必須因爲某些原因加入manually。 Web連接器文檔和新的QuickBooks integration wiki都不清楚這些細節。

相關問題