I am creating a site collection by calling a built-in SharePoint web service.
http://Server_Name/_vti_adm/admin.asmx
This web service has a method called CreateSite
which allows users to create a site collection. Pretty straight forward (method documentation).
It creates a site with a URL such as:
http://Server_Name/sites/SiteCollection_Name
I would like to create a site collection where the Name of the Site comes first, such as:
http://SiteCollection_Name/Server_Name
I remember there is a property called UseHostHeaderAsSiteName
I can't see an option to use this property with CreateSite
method. How do we use this property or any method to create a site that will give the URL such as:
http://SiteCollection_Name/Server_Name