I'm trying to use the following web service in SharePoint 2010 to list all of the sub site collections


string soapmessage = "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\">" +
                          "<soap:Body>" +
                          "<GetAllSubWebCollection xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\" />" +
                          "</soap:Body>" +

My understanding is it should return all the sub sites. In this case an additional 3 sites.

Am I missing something or using the incorrect service?

At the moment it is just bringing back the details for the root site. http://sharepointsite2010

and not bringing back details about sub collections

  • what is happening in your case ? is it not returning anything giving any error ? please provide some details. – Siddharth Vaghasia Nov 16 '16 at 19:00
  • @Siddharth Vaghasia updated question – Webfort Nov 16 '16 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.