QBWC1012:身份验证因以下错误消息而失败。客户端发现 'text/xml' 的响应内容类型,但应为 'text/xml'

QBWC1012: Authentication failed due to following error message. Client found response content type of 'text/xml', but expected 'text/xml'

20150604.02:34:43 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : updateWS() for application = 'APPNAME' has STARTED
20150604.02:34:43 UTC   : QBWebConnector.RegistryManager.getUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock = FALSE
20150604.02:34:43 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to True
20150604.02:34:43 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session locked *********************
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : Initiated connection to the following application.
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppName: APPNAME
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppUniqueName (if available): APPNAME
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppURL: http://localhost/quickbooks/qbwc/qbwc.php
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : *** Calling serverVersion().
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : Actual error received from web service for serverVersion call: <Client found response content type of 'text/xml', but expected 'text/xml'.
The request failed with an empty response.>. For backward compatibility of all webservers, QBWC will catch all errors under app-not-supporting-serverVersion.
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : This application does not contain support for serverVersion. Allowing update operation for backward compatibility.
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : *** Calling clientVersion() with following parameter:<productVersion="2.1.0.30">
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.updateWS() : Actual error received from web service for clientVersion call: <Client found response content type of 'text/xml', but expected 'text/xml'.
The request failed with an empty response.>. For backward compatibility of all webservers, QBWC will catch all errors under app-not-supporting-clientVersion.
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : This application does not contain support for clientVersion. Allowing update operation for backward compatibility.
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : Authenticating to application 'APPNAME', username = 'Admin'
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : *** Calling authenticate() with following parameters:<userName="Admin"><password=<MaskedForSecurity>
20150604.02:34:43 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : QBWC1012: Authentication failed due to following error message.
Client found response content type of 'text/xml', but expected 'text/xml'.
The request failed with an empty response.
More info:
StackTrace =    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   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
20150604.02:34:43 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to False
20150604.02:34:43 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session unlocked *********************
20150604.02:34:43 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : Update completed with errors. See log (QWClog.txt) for details.

我已经三次检查 .qwc 用户名是否与 quickbooks_user table 中的用户名相同,并且连接器中给出的密码也匹配。 错误消息声称它得到了预期的结果。关于从这里去哪里的任何帮助?

错误消息说:

The request failed with an empty response.

与故障排除 任何 PHP 脚本一样,您应该做的第一件事是检查 PHP 错误日志。

你检查了吗?它说了什么?

否则 -- post 您的代码。如果您不 post 您的代码,我们很难帮助您,以便我们可以看到您在做什么。

您还可以使用模拟 Web 连接器会话的测试脚本 -- 例如:

发件人:

该脚本将模拟 Web 连接器会话并向您显示 PHP 脚本的输出。