Rob Garrett - Blogs

Welcome to Rob Garrett - Blogs Sign in | Join | Help
in Search
Google

Software/Technology Discussion

Software and Technology Tid-bits

ASP.NET Web Services, HTTP GET and POST

Since the beginnings of ASP.NET 1.1, Microsoft disabled HTTP GET and POST actions on .NET Framework based web services (for security reasons).  If you want to enable these protocols, add the following XML to the the system.web node in the web.config file:

<webServices>
     <protocols>
          <add name="HttpGet"/>
          <add name="HttpPost"/>
     </protocols>
</webServices>

I recommend that you only enable these protocols if your service does not care about security. In my case, I wanted to expose an already public non-rpc service as a web service (with some business logic thrown in) and still enable legacy clients to use this new service without the SOAP overhead.

Share this post: Email it! | bookmark it! | digg it! | reddit!
Published Thursday, June 14, 2007 2:43 PM by Rob Garrett
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 
Submit

Blurb


Head Shot
Rob Garrett is a British Expat living in Maryland USA. Rob is a trained software engineer and experienced in Windows .NET development.

Rob enjoys listening to Rock music, posting to blogs, driving in the country with the sunroof open, beer (not in conjunction with country driving) and spending time with his family.

This Blog

Syndication

Powered by Community Server, by Telligent Systems