3.1.4.1.2.1 CreateSite

Creates a site collection.

 <s:element name="CreateSite">
   <s:complexType>
     <s:sequence>
       <s:element minOccurs="0" maxOccurs="1" name="Url" type="s:string" />
       <s:element minOccurs="0" maxOccurs="1" name="Title" type="s:string"/>
       <s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string"/>
       <s:element minOccurs="0" maxOccurs="1" name="Lcid" type="s:int" />
       <s:element minOccurs="0" maxOccurs="1" name="WebTemplate" type="s:string"/>
       <s:element minOccurs="0" maxOccurs="1" name="OwnerLogin" type="s:string" />
       <s:element minOccurs="0" maxOccurs="1" name="OwnerName" type="s:string"/>
       <s:element minOccurs="0" maxOccurs="1" name="OwnerEmail" type="s:string"/>
       <s:element minOccurs="0" maxOccurs="1" name="PortalUrl" type="s:string"/>
       <s:element minOccurs="0" maxOccurs="1" name="PortalName" type="s:string"/>
     </s:sequence>
   </s:complexType>
 </s:element>

Url: The absolute URL of the site collection. It MUST be formatted as either http://ServerName:PortNumber/sites/SiteCollectionName or http://ServerName/sites/SiteCollectionName. Its maximum length, not including http://ServerName or http://ServerName:PortNumber, is 128 characters. If it is missing or absent, the server MUST return a SOAP fault. PortNumber in the first format MUST be the port number used by either the web application or the Administration Web Service on the protocol server.

Title: The display name of the site collection. It MUST be less than or equal to 255 characters. If nothing is specified, the site will have a default title of "Team Site".

Description: A description of the site collection. If nothing is specified, the site will not have a description.

Lcid: A valid LCID, as specified in [MS-LCID], which specifies the language that is used in the site collection. If it is missing, the server MUST assign a default LCID.<1>

WebTemplate: The name of the site template to use when creating the site collection. GetSiteTemplates in [MS-SITESS] section 3.1.4.5 can be used to get a list of site templates. If no template is specified, then no template will be applied to the site at creation time.

OwnerLogin: The user name of the site collection owner. It MUST be less than or equal to 255 characters.<2> If it is missing or empty, the server MUST return a SOAP fault.

OwnerName: The display name of the owner. It MUST be less than or equal to 255 characters. If it is not specified, the name will be taken from the user database entry corresponding to the owner user.

OwnerEmail: The e-mail address of the owner. It MUST be less than or equal to 255 characters. If it is not specified, the e-mail will be taken from the user database entry corresponding to the owner user.

PortalUrl: The URL of the portal site for the site collection. It MUST be less than or equal to 260 characters. If nothing is specified, no portal URL will be set in the database. There is no URL validation performed on this element other than the check for its existence. If the URL is absent or empty, no portal URL will be set in the database.

PortalName: The name of the portal site for the site collection. It MUST be less than or equal to 255 characters. If nothing is specified, no portal name will be set in the database.