您的位置:首页 > 移动开发

解决"415 Cannot process the message because the content type 'application/x-www-form-urlencoded' was not the expected type 'text/xml; charset=utf-8'"

2015-03-17 11:01 381 查看
wcf basicHttpBinding content-type text/xml;charset=utf-8

wsHttpBinding 'application/soap+xml; charset=utf-8'

webHttpBinding 'application/x-www-form-urlencoded' 对应网页中的post请求

所以如果是post请求wcf服务,要使用webHttpBinding
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐