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


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM