SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a web service(WSDL) to access spsitedataquery functions?.

I see web services for sitedata, lists, web and site but there is no spsitedata*query*. I am interested in getting the list of Lists with ServerTemplate=105. The other web services, like sitedata,web or lists do not take query filtering parameters when getting the listcollection.

share|improve this question

The Lists Web Services is what you're looking for. GetListCollection should do it, and you can filter the results however you'd like. If you want to look across webs, then combine with GetWebCollection from the Webs Web Service.

GetListCollection in the SiteData Web Services looks across all webs in the site, but as you note, no filtering is available.

share|improve this answer
Thanks. That is what I am doing right now. Wondering why MSFT did not provision that webservice? – so_mv Jun 7 '11 at 21:26
SharePoint is a very large beastie, and different development teams have worked on the disparate parts, as is very obvious sometimes. The Web Services don't always follow the same logic as the API, though they are usually fairly close. – Marc D Anderson Jun 9 '11 at 2:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.