locked
Is it possible to create a sitecollection via SharePoint 2010 Client Object Model? RRS feed

  • Question

  • Hi,

    is it possible to create a sitecollection via SharePoint 2010 Client Object Model?


    Best Regards
    Bog

    Developers Field Notes | www.bog1.de

    Saturday, September 27, 2014 9:33 PM

Answers

  • Hi Bog,

    you can use web service 

    http://msdn.microsoft.com/en-us/library/websvcadmin.admin.createsite.aspx


    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

    • Proposed as answer by Hemendra Agrawal Monday, September 29, 2014 6:21 AM
    • Marked as answer by [Bog] Monday, September 29, 2014 6:21 AM
    Sunday, September 28, 2014 10:50 AM

All replies

  • Hi,

    yo need SPWebApplication object to create a new site collection, but the highest available object is SPSite.

    try SPWebApplicationBuilder, it may works.

    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebapplicationbuilder(v=office.14).aspx

    Regards.

    Sunday, September 28, 2014 8:43 AM
  • Hi, thanks for response. To clearify:

    that means, that it is not possible to create a sitecollection through sp webservices .


    Best Regards
    Bog

    Developers Field Notes | www.bog1.de

    Sunday, September 28, 2014 9:04 AM
  • Hi Bog,

    you can use web service 

    http://msdn.microsoft.com/en-us/library/websvcadmin.admin.createsite.aspx


    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

    • Proposed as answer by Hemendra Agrawal Monday, September 29, 2014 6:21 AM
    • Marked as answer by [Bog] Monday, September 29, 2014 6:21 AM
    Sunday, September 28, 2014 10:50 AM
  • Hi,

    check the below link

    Create site collection


    Thank You, Somnath Matere

    Sunday, September 28, 2014 6:42 PM
  • Thanks for reply, but this is for SharePoint 2013, i need for 2010.

    I think John.Naguib's reply is ok, but i am currently not able to mark it as answer.


    Best Regards
    Bog

    Developers Field Notes | www.bog1.de

    Sunday, September 28, 2014 6:44 PM