1

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?

2
  • Are you talking about an ASP.NET web service or a WCF service? Commented Jul 16, 2009 at 20:27
  • I think the ASP.NET folks may have disowned their services. Microsoft now calls them "legacy". Better to say "ASMX Service". Commented Jul 17, 2009 at 0:27

1 Answer 1

9

In your Web.config:

<configuration>
    <system.web>
        <webServices>
            <protocols>
                <add name="HttpGet"/>
            </protocols>
        </webServices>
    </system.web>
</configuration>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.