title: How to add custom HTTP headers to asmx call using SoapExtension in c#
body: <p>I am trying to add a custom HTTP header to the asmx call by intercepting it using the <code>ProcessMessage</code> (SoapMessage message) by extending <code>SoapExtension</code> Class in c#.</p>
  
  <p>The problem here is that all i have in <code>ProcessMessage()</code> is the <code>SoapMessage</code>, while i need to add a custom http header. </p>
  
  <p>I tried doing this : </p>
  
  <pre><code>HttpContext.Current.Request.Headers.Add("X-MyHeader", "xyz"); 
  </code></pre>
  
  <p>but it doesn't work.</p>