使用 Sharepoint 2010 基于声明的 WCF
我正在尝试使用基于 WCF 的 Sharepoint 2010 声明。我收到以下错误消息:感谢您的任何建议。
System.ServiceModel.CommunicationException
“响应消息的内容类型 text/html; charset=UTF-8 与绑定的内容类型 (text/xml; charset=utf-8) 不匹配。如果使用自定义编码器,则确保 IsContentTypeSupported 方法已正确实现第 1024 个 b...”
I am trying to consume WCF based Sharepoint 2010 claim-based. I am getting the following error message: Thank you for any advice.
System.ServiceModel.CommunicationException
"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 b..."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
每当您从 Web 服务获取 HTML 时,就意味着您会收到一条错误消息。使用 Fiddler 或其他工具查看网络流量,看看该服务试图告诉您什么。
Whenever you get HTML from a web service, it means you're getting an error message. Look at the network traffic using Fiddler or something to see what the service is trying to tell you.