Jon
Jon

Reputation: 4295

Add HTTP GET method to C# web service

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?

Upvotes: 1

Views: 9331

Answers (1)

RandomEngy
RandomEngy

Reputation: 15403

In your Web.config:

<configuration>
    <system.web>
        <webServices>
            <protocols>
                <add name="HttpGet"/>
            </protocols>
        </webServices>
    </system.web>
</configuration>

Upvotes: 9

Related Questions