码迷,mamicode.com
首页 > Web开发 > 详细

让WebService支持Get请求

时间:2017-05-09 13:43:14      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:config   web   system   文件   config文件   新建   pre   默认   pos   

在C#中,新建一个webservice,默认是post类型的。如果需要支持Get请求,需要对web.config文件进行配置

  <system.web>
    <compilation debug="true" targetFramework="4.6.1"/>
    <httpRuntime targetFramework="4.6.1"/>
    <webServices>
      <protocols>
        <add name="HttpGet"/>
        <add name="HttpPost"/>
      </protocols>
    </webServices>
  </system.web>

 

让WebService支持Get请求

标签:config   web   system   文件   config文件   新建   pre   默认   pos   

原文地址:http://www.cnblogs.com/caoyc/p/6830095.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!