Blog Stats
  • Posts - 94
  • Articles - 0
  • Comments - 10
  • Trackbacks - 0

 

Web Services

Web Service related posts; predominately referential to ASP.Net

ASP.Net WebServices: Enabling or Disabling POST, GET, and Documentation Requests

It is relatively easy to control access to the various HTTP request types (protocols) for your ASP.Net WebService. Add something like this to the system.web section of your web.config: <webServices>       <protocols>         <add name="HttpSoap"/>         <add name="HttpGet"/> <!-- Because this web service is all GET methods -->         <add name="HttpPostLocalhost"/> <!-- So you can test/POST locally -->         <remove name="Documentation"/>  <!-- So the outside world can't see your methods documentation -->         <remove name="HttpPost"/> <!-- Remove general POSTs from the outside world -->      </protocols> </webServices> Of course you will want to tailor this to the needs of your own web service. :)

 

 

Copyright © Greg Steen