Rajath
Rajath

Reputation: 215

How can I get a site collection object from Sharepoint server

I am stuck up in a problem wherein I need to query a sharepoint server to return all the sites(top sites) present at the same level. For example, If I query sharepoint server to return all the top sites which are at the same level as that of "http://vmsp2010-1", it should return all top sites. I have a web server implemented in Java which is hosted on the Apache Tomcat server. From this web server, I need to query sharepoint server to return all the top sites which are at the same level in sharepoint. Please let me know How I could query the sharepoint server.

Upvotes: 1

Views: 235

Answers (1)

Nitin Rastogi
Nitin Rastogi

Reputation: 1456

I don't think SharePoint's OOB Web Services supports what you are looking for. Possibly, you would want to create a custom web service of yours and get the list of site collections. You will have to write the code using SharePoint Object Model and host this logic inside a custom web service.

Upvotes: 1

Related Questions