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 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?