douche5961 2015-06-04 03:03
浏览 84
已采纳

QBWC1012:由于以下错误消息,身份验证失败。 客户发现响应内容类型为“text / xml”,但预期为“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.

I've triple checked that the .qwc username is the same as it is in the quickbooks_user table and the password given in the connector matches as well. The error message claims it's getting what is expected. Any help on where to go from here?

  • 写回答

1条回答 默认 最新

  • doulidai6316 2015-06-04 04:57
    关注

    The error message says:

    The request failed with an empty response.

    As with troubleshooting any PHP script, the very first thing you should do is check your PHP error log.

    Did you check it? What did it say?

    Failing that -- post your code. Tough to help you if you don't post your code so we can see what you're doing.

    You could also use a test script that simulates a Web Connector session -- for example:

    From:

    That script will simulate a Web Connector session and show you the output from your PHP script.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)