Preeti
Preeti

Reputation: 1386

How to get list of Sites and lists from Sharepoint using Web Services?

I want to get list of Sites and Lists from Sharepoint using Web Services.

Worked on GetSite() and GetSiteAndWeb() functions of SiteData web service

Also tried Site and Lists.

I am unable to get list of sites.

Upvotes: 1

Views: 3099

Answers (1)

Justin Niessner
Justin Niessner

Reputation: 245429

You want the Webs.GetWebCollection method from the Webs Web Service.

Webs.GetWebCollection

When working through the SharePoint API, the terminology is different than when working in SharePoint itself.

Site Collection (SharePoint) -> Site (SharePoint API)
Site (SharePoint) -> Web (SharePoint API)

Upvotes: 4

Related Questions