设置Webservice支持Http和报错【从客户端(xml="


1、第一种情况,当写的WebService不支持其他请求时,处理方式;执行在WebConfig配置文件<system.web>节点增加

<webServices>
<protocols>
<add name="HttpPost"/>
<add name="Documentation"/>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="HttpPostLocalhost"/>
</protocols>
</webServices>

2. 当PostMan出现【从客户端(xml=&quot;&lt;?xml version=&quot;1.0&quot; ...&quot;)中检测到有潜在危险的 Request.Form 值。】

只需在WebConfig配置文件<system.web>增加 <httpRuntime requestValidationMode="2.0"/>

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM