SharePoint Web Service: You must select a list on the subscribe

Ok, so I figured out how to connect to the web service (.NET 2.0 style) and return some lists.

private void PrintLists()
{
    // ListsService is a property that returns the Lists web service, authenticated.
    XmlNode node = ListsService.GetListCollection();
    foreach (XmlNode sub_node in node.ChildNodes)
    {
        Console.WriteLine(sub_node.Attributes["Title"].InnerText);
    }
}

This returns the number of lists that actually exist in the SharePoint instance.

The problem is that the list I want is deep inside SharePoint. There are “sub-sites” or “sub-websites”, as I understand it, they are called (please correct me if I am mistaken), which are tabs at the top of the SharePoint page when viewed in a browser. One of these tabs has a separate subsection, and then finally there are several lists, one of which I want to get.

, , , -, , , . , , .

, .

+3
1

http://msdn.microsoft.com/en-us/library/lists%28office.12%29.aspx

:

ListsService.Url = "http://yourserver/sites/yoursite/_vti_bin/lists.asmx"
+6

Source: https://habr.com/ru/post/1790331/


All Articles