title: Write .net web service consumes from SAP
body: <p>I need to write .Net (C#) a web service which consumes from SAP side. I wrote the c# web serives but problem is that need to add HTTP request header. ACtually i dont know how to add HTTP Request header to web service? I added SOAP Header but SAP side need HTTP request Header.</p>
  
  <p>Sample Code </p>
  
  <pre><code>    public class TestService : System.Web.Services.WebService
      {
           public class AuthSoapHeader : SoapHeader
           {
                public AuthSoapHeader() { }
  
                public string Username = string.Empty;
                public string Password = string.Empty;
           }
  
          [WebMethod]
          [SoapHeader("AuthHeader")]
          public List&lt;Response&gt; Testmethod(TestClass testData)
          {
  
              if ( AuthHeader.Username == "testuser" &amp;&amp; AuthHeader.Password == "testpawd")
              {
              }
          }
      }
  </code></pre>
  
  <p>Please anyone know how to do this?</p>
  
  <p>Thank you</p>