错误“"客户端发现响应内容类型为"text/html"; charset = utf-8",但应为"text/xml". [英] Error ""Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.""

查看:380
本文介绍了错误“"客户端发现响应内容类型为"text/html"; charset = utf-8",但应为"text/xml".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过网络服务事件发送数据时,此错误"客户端发现响应内容类型为"text/html; charset = utf-8",但应为"text/xml"."

When send data through webservice event this error ""Client found response content type of ''text/html; charset=utf-8'', but expected ''text/xml''.""
how can change web.confige to solve this problem?

推荐答案

好像您的服务响应可能存在一些问题.

尝试使用工具调用Fiddler来检查Web服务请求/响应.
这个想法可以使您了解什么配置可能是错误的.
Looks like your service response might have some issues.

Try using a tool call Fiddler to check the web service request / response.
This mighe be able to give you an idea on what configuration could be wrong.


感谢abhinav
但是在发送某些数据包含字符Strange时发生事件错误,在发送普通数据时没有任何问题
thanks abhinav
but event error when send some data contain characters Strange,when send normal data not have any problems


看看similr问题讨论 ^ ]和已经讨论过 [
Have a look at the similr issue discussion here[^] and here[^].

Looks like quite a few links on web already discussed[^].


这篇关于错误“"客户端发现响应内容类型为"text/html"; charset = utf-8",但应为"text/xml".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆