码迷,mamicode.com
首页 > 移动开发 > 详细

解决"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 12:12:35      阅读:425      评论:0      收藏:0      [点我收藏+]

标签:

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

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

标签:

原文地址:http://www.cnblogs.com/langu/p/4343858.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!