c #web service asp.net问题 [英] c# web service asp.net question
本文介绍了c #web service asp.net问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
内容类型text / html;响应消息的charset = utf-8与绑定的内容类型不匹配(text / xml; charset = utf-8)。如果使用自定义编码器,请确保正确实现IsContentTypeSupported方法。响应的前1024个字节是:'
请帮帮我??
解决方案
在第一个视图中,我也没有看到区别。但这里是:
绑定需要XML
,而Web服务发送HTML
。
我会更改绑定的内容类型。
my web Service Error When Call One Function:
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '
please help me??
解决方案
At first view, I did not see the difference either. But here it is:
the binding expectsXML
, while the web service sendsHTML
.
I'd change the content type of the binding.
这篇关于c #web service asp.net问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文