Add HTTP GET method to C# web service
-
16-09-2019 - |
Question
I want to access one of my web service methods via HTTP GET, I've seen it done before but I can't figure out how to allow this access protocol on a VS2008 web service project.
I guess you have to change the web.config file but not sure what to.
Does anyone know?
Solution
In your Web.config:
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
</protocols>
</webServices>
</system.web>
</configuration>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow