QBWC1012:由于以下错误消息,身份验证失败。客户发现了#text; xml'的响应内容类型,但预期' text / xml'

时间:2015-06-04 03:03:55

标签: php soap web quickbooks connector

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表中的用户名相同,并且连接器中给出的密码也匹配。 该错误消息声称它获得了预期的结果。有什么帮助从哪里开始?

1 个答案:

答案 0 :(得分:0)

错误消息显示:

  

请求因空响应而失败。

与对任何 PHP脚本进行故障排除一样,您应该首先检查PHP错误日志。

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

失败 - 发布您的代码。如果您不发布您的代码,我们可以帮助您,以便我们可以看到您正在做的事情。

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

自:

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