title: Consuming webservice from wsdl with basic authentication from asp.net
body: <p>I have a  WSDL file. I want to consume webservice from this WSDL. I have added service reference by using this WSDL and created proxy. I have created required parameter for invoking my service method. Actually webservice is protected by a basic authentication. But in the client proxy no option found to provide the user name and password. How could I invoke webservice? 
  I want to provide basic authentication credentials.</p>
  
  <p>I am getting the following error when invoking service method without giving credentials.</p>
  
  <pre><code> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. 
  ---&gt; System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
  </code></pre>
  
  <p>Please help me</p>