title: Is there a way to restrict access to an ASMX Webservice, i.e. the asmx page and its WSDL?
body: <p>I have a C# .net webservice that I need to restrict access to.  I already require my consumers to use a username and password to call the service.  But, is there a way to restrict access to the actual asmx page and the WSDL?  I would need to restrict access to the webservice by username/password and IP address.  If a user did not have the correct credentials, I would not want them to know what webmethods exist in the webservice.</p>
  
  <p>Can this be done though IIS?  I know that I can restrict IP addresses through IIS, but can I also use usernames/passwords?</p>
  
  <p>Is there any other way to do this outside of IIS, maybe using C#.net?</p>