要在webservice的web.config文件中的 <system.web> 节点下加入:
<webServices>
<protocols>
<add name= "HttpPost"/>
<add name= "HttpGet"/>
</protocols>
</webServices>
<protocols>
<add name= "HttpPost"/>
<add name= "HttpGet"/>
</protocols>
</webServices>
本文详细介绍了如何在web.config文件中添加<system.web><webServices>节点来启用HTTP Post和Get请求协议,以实现Web服务的跨域访问。
要在webservice的web.config文件中的 <system.web> 节点下加入:
579

被折叠的 条评论
为什么被折叠?