title: Accessing list from Sharepoint Webservice with Sharepoint Online 2013
body: <p>I am trying to access a list from sharepoint via the web services.</p>
  
  <p>I have tried lots of different web reference URLS for my web service. </p>
  
  <p>The list is found at :</p>
  
  <pre><code>example.com/sites/dms/_layouts/15/start.aspx#/Lists/Documents/AllItems.aspx
  </code></pre>
  
  <p>the Web service URL I am using now is </p>
  
  <pre><code>https://example.com/sites/dms/_vti_bin/lists.asmx
  </code></pre>
  
  <p>Obviously example.com is not the real URL.</p>
  
  <p>when I run the code</p>
  
  <pre><code>service.GetList("Documents");
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>List does not exist.<br>
    The page you selected contains a list that does not exist.  It may have been deleted by another user.<br>
    0x82000006</p>
  </blockquote>
  
  <p>My full code (many things are just for testing purposes):</p>
  
  <pre><code>public void UpdateList()
  {
      MKLists.Lists service = GetService();
  
      string targetSite = "https://mywebpage.com/sites/dms";
  
      using (ClientContext ctx = ClaimClientContext.GetAuthenticatedContext(targetSite))
      {
          if (ctx != null)
          {
              ctx.Load(ctx.Web); // Query for Web
              ctx.ExecuteQuery(); // Execute
              string test = (ctx.Web.Title);
          }
      }
  
      CookieCollection authCookie = ClaimClientContext.GetAuthenticatedCookies(targetSite, 925, 525);
  
      service.CookieContainer = new CookieContainer();
      service.CookieContainer.Add(authCookie);
  
      XmlNode tester = service.GetList("Documents");
  }
  
  
      private MKLists.Lists GetService()
      {
          MKLists.Lists myService = new MKLists.Lists();
          myService.Credentials = System.Net.CredentialCache.DefaultCredentials;
          return myService;
      }
  </code></pre>