title: Get the authentication method of a SQL Report Service
body: <p>Is it possible to get the authentication method of a SQL Report Service? I have an application to deploy RDLs (found <a href="http://sqlblog.com/blogs/rhundhausen/archive/2006/12/26/deploy-rdl-files-to-multiple-sql-server-2005-reporting-services-servers.aspx" rel="nofollow">here</a> by the way). It has the following code (simplified):</p>
  
  <pre><code>ReportingService2005 ws = new ReportingService2005();
  ws.Url = url;
  ws.Credentials = System.Net.CredentialCache.DefaultCredentials;
  ws.CreateReport(....)
  // and so on
  </code></pre>
  
  <p>But what if a server needs a username and password? As this piece of code will be used on multiple servers, I would need a method to request the authentication method first. If its integrated security, I could use the code above. If not, I could ask the user a username and password.</p>
  
  <p>I've tried with <code>ws.GetSystemProperties</code> to request the <code>EnableIntegratedSecurity</code> property, but I still get an exception (407 Proxy Authentication Required). I could catch the exception and then prompt for username and password, but prefer not to use this exception-driven style.</p>