使用Webservice时出错 [英] Error while consuming Webservice

查看:115
本文介绍了使用Webservice时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用Windows服务中托管在IIS中的一项Web服务.在使用该Web服务代理方法时,我遇到了以下错误.

但是它不是定期发生,而是随机发生.有时候它工作得很好.

错误是:
响应消息的内容类型text/html与绑定的内容类型不匹配(text/xml; charset = utf-8).如果使用编码器,请确保正确实施IsContentTypeSupported方法.响应的前163个字节是< html>< head< title"错误</title< title/&head;< head" body"没有提供所需的模拟级别,或者提供的模拟级别是无效的</body></html>


在此先谢谢您.

Hi,

I''m consuming one webservice which hosted in IIS in my windows service. While consuming that web service proxy method I''m getting below error.

But its not happening regularly, randomly it s happening. Sometime its working very fine.

Error is :
The content type text/html of the response message does not match the content type of the binding (text/xml;charset=utf-8). If using a encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 163 bytes of the response were "<html><head><title>Error</title></head><body> Either a required imersonation level was not provided, or the provided impersonation level is invalid </body></html>


Thanks in advance.

推荐答案

^ ]知道此错误,请尝试.
Looks like this guy [^]knows about this error... try out.


这篇关于使用Webservice时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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