首页 > 移动平台 > 详细

解决"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      阅读:3419      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!