QBWC错误QBWC1013:“无法启动QuickBooks。”

QBWC错误QBWC1013:“无法启动QuickBooks。”,quickbooks,qbwc,Quickbooks,Qbwc,我无法从Web连接器启动QuickBooks。我正在传递有效的文件路径,根据文档,一切看起来都正常 QBWC版本为2.1.0.3.0 QB版本是2010年的主要承包商版本 如果已打开QuickBooks,则Web连接器运行良好。如果它没有打开,我会得到QBWC1013错误 日志的相关部分: 20130312.14:14:56 UTC : QBWebConnector.SOAPWebService.instantiateWebService() : Initiated connection t

我无法从Web连接器启动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.

我将假设您的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未运行,也允许访问

不要忘记从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>

请注意,如果您正在使用,出于某种原因,必须添加该文件。Web Connector文档和新版本在这一细节上都不够清晰。

我假设您的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未运行,也允许访问

不要忘记从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>

请注意,如果您正在使用,出于某种原因,必须添加该文件。Web连接器文档和新版本都缺乏对这一细节的清晰说明。

正如日志数据所显示的->用户验证,这意味着.qwc文件的格式正确。身份验证后,web连接器向QuickBook发出连接请求,但在您的案例中失败

通过web连接器连接到QuickBooks桌面的步骤包括:

在管理模式下运行web服务和QuickBook桌面应用程序 web服务的名称和QuickBook公司名称应相同 以多用户模式运行QuickBook desktop,以便您也可以通过web连接器连接QuickBook。 在web服务代码中,如果用户是可信的,则使authReturn[1]= //连接到当前在QuickBooks中打开的公司文件 这对我有用。
祝您万事如意。

日志数据显示->用户验证,这意味着.qwc文件格式正确。身份验证后,web连接器向QuickBook发出连接请求,但在您的案例中失败

通过web连接器连接到QuickBooks桌面的步骤包括:

在管理模式下运行web服务和QuickBook桌面应用程序 web服务的名称和QuickBook公司名称应相同 以多用户模式运行QuickBook desktop,以便您也可以通过web连接器连接QuickBook。 在web服务代码中,如果用户是可信的,则使authReturn[1]= //连接到当前在QuickBooks中打开的公司文件 这对我有用。 祝你一切顺利