title: Do not comment shaerpoint's Lists.asmx service
body: <p>I am trying to fetch the list of file names which are there in my document library of office 365 SharePoint site.</p>
  
  <p>I am using below code to access the <code>List.asmx</code> Service using Visual Studio 2010.</p>
  
  <pre><code>ServiceReference1.ListsSoapClient ws = new ServiceReference1.ListsSoapClient();
  ws.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential("USERNAME", "PASSWORD", "sharepoint");            
  ws.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
  ws.Endpoint.Address = new System.ServiceModel.EndpointAddress("http://XYZ.sharepoint.com/_vti_bin/lists.asmx");
  XElement li = ws.GetListCollection();
  </code></pre>
  
  <p>This code gives me below error while executing <code>ws.GetListCollection()</code> function:</p>
  
  <pre><code>The HTTP request was forbidden with client authentication scheme 'Ntlm'. 
  </code></pre>
  
  <p>Can anyone help me that? Is there any problem on SharePoint site access permissions or am I missing something in code part or some configuration things?</p>