解决"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:28   收藏:0   阅读:3419

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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!