webServices 使用GET请求接口方法

webServices  若要使用GET请求接口方法在Web.config 下添加这段

<webServices>     <protocols>       <add name="HttpGet"/>       <add name="HttpPost"/>     </protocols> </webServices>

地址中就能够使用类似:http://localhost:57760/WebService.asmx/addition?i=3&j=2 这样Get去请求!


posted @ 2017-04-21 20:33  klStudy  阅读(566)  评论(0编辑  收藏  举报