title: How to detect which web service protocol an ASP.NET request is using?
body: <p>I have an ASP.NET (1.1) web service which authenticates clients using a SoapExtension.ProcessMessage(SoapMessage) override as described in:</p>
  
  <p><a href="http://www.codeguru.com/columns/experts/article.php/c5479" rel="nofollow noreferrer">http://www.codeguru.com/columns/experts/article.php/c5479</a></p>
  
  <p>However if the web.config if not set up such that HttpSoap is the only protocol allowed, then ProcessMessage will never get called for requests coming in on other protocols, and therefore bypass security.</p>
  
  <p>Is there anyway to programatically ensure SOAP is being used (as opposed to relying on the web.config to be correct)?</p>
  
  <p>Thanks.</p>