title: How to pass user credentials to web service?
body: <p>I am consuming a webservice using WSDL in windows application. When I try to use method, i get the following error:-</p>
  
  <blockquote>
    <p>The HTTP request is unauthorized with client authentication scheme
    'Anonymous'. The authentication header received from the server was '"</p>
    
    <p>{"The remote server returned an error: (401) Unauthorized."}</p>
  </blockquote>
  
  <p>I have user credentials but don't know how to pass it using c# code in windows application.</p>