Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.