Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Enumerate Site Collections via web services?

  Asked By: Alyson    Date: Jan 20    Category: Sharepoint    Views: 1847

I would have thought this is possible but I must be missing
something. Isn't it possible (via SPPT web services) to enumerate or
iterate through the WSS site collections existing on a SPS (or WSS)

I know that in the object model you can do this:
Dim glAdmin As New SPGlobalAdmin
Dim sUri As New System.Uri("http://" & Environment.MachineName)
Dim vServer As SPVirtualServer = gAdmin.OpenVirtualServer(sUri)
For Each spMySite As SPSite In vServer.Sites
For Each spMyWeb As SPWeb In spMySite.AllWebs
For Each spMyList As SPList In spMyWeb.Lists

but i do not see a simlar way to do this in the web services
provided. I can use a similar technique:
Dim wSvc As New [WebsWebServiceName].Webs
wSvc.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim myNode As XmlNode = wSvc.GetAllSubWebCollection()
Dim nodes As XmlNodeList = myNode.SelectNodes("*")
For Each node As XmlNode In nodes

but this only returns the areas of my portal.

Any help would be greatly appreciated.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Enumerate Site Collections via web services? Or get search suggestion and latest updates.

Related Topics: