客户端发现响应内容类型为text/html charset = utf-8,但预期的text/xml [英] client found response content type of text/html charset=utf-8 but expected text/xml
本文介绍了客户端发现响应内容类型为text/html charset = utf-8,但预期的text/xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在项目中使用的是Web服务,并且在调试时没有错误.
它可以成功构建,但是当我按下任何一个按钮来从数据库中获取数据时,它会显示以下错误:
错误:
Hi all,
I am using a web service in my project and while I am debugging it there are no errors.
It builds succesfully, but when I clinck any button to bring data from the database it shows the following error:
Error:
"client found response content type of text/html charset=utf-8 but expected text/xml"
我已在Google中搜索以解决此错误,但没有用.
所以谁能建议我如何解决这个错误.
I have searched in Google to solve this error but to no use.
So can anyone suggest me how to go about solving this error.
Thanks in advance!
推荐答案
尝试使用诸如Fiddler之类的工具来调试通过网络往返Web服务的信息.
这似乎与生成请求/响应的方式有关.
Try using a tool like Fiddler to debug information being sent across the wire to and fro the web service.
This looks like something to do with the way the request / response is being generated.
查看此处:^ ]
也许会有帮助!
Look here: http://bytes.com/topic/net/answers/521202-error-web-service-charset-utf-8-a[^]
Maybe that will help!
这篇关于客户端发现响应内容类型为text/html charset = utf-8,但预期的text/xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文