Enabling HttpGet and HttpPost for web services

If your web application needs to accept incoming webservice method requests based on the GET and POST protocols then add the following lines to your web.config file.

<configuration>
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet"/>
        <add name="HttpPost"/>
      </protocols>
    </webServices>
  </system.web>
</configuration>
Author Barrington Haynes

I have nothing more to say

Comments

richard said:

thanks so much. I'm learning XML web services using a book that was based on Visual Studio 2003, and I'm working with 2005.

This is a big help

06/Aug/2008 19:55 PM

Add Comment

Name
Comment
 

Your comment has been received and will be shown once it passes moderation.