3.1.4.2.2.2 CreateDwsResponse

This element returns the protocol server response to the protocol client. This element is defined as follows:

 <s:element name="CreateDwsResponse">
   <s:complexType>
     <s:sequence>
       <s:element name="CreateDwsResult" type="s:string" minOccurs="0" maxOccurs="1" />
     </s:sequence>
   </s:complexType>
 </s:element>

CreateDwsResult: String that contains stand–alone XML. The string MUST conform to the following XSD:

 <s:complexType>
   <s:choice>
         <s:element ref="tns:Error"/>
     <s:element name="Results">
       <s:complexType>
         <s:sequence>
           <s:element name="Url" type="s:string" />
           <s:element name="DoclibUrl" type="s:string" />
           <s:element name="ParentWeb" type="s:string"/>
           <s:element name="FailedUsers" type="tns:UserType" minOccurs="0" maxOccurs="unbounded"/>
           <s:element name="AddUsersUrl" type="s:string"/>
           <s:element name="AddUsersRole" type="s:string"/>
         </s:sequence>
       </s:complexType>
     </s:element>
   </s:choice>
 </s:complexType>

Error: See section 2.2.3.2 for specification. Possible values for this operation are listed in the following table.

Error code

Identifier

Description

QuotaExceeded

14

User creating the workspace has exceeded the allocated resource quota.

ServerFailure

1

Protocol server encountered an error during the attempt to create the workspace.

AlreadyExists<5>

13

A site with the specified name already exists on this site.

Url: URL for the new workspace. This MUST be an absolute URL.

DoclibUrl: Site-relative URL for the shared documents list associated with the workspace.

ParentWeb: Title of the site (2) on which the workspace is created. If the workspace is the root site of the site collection, this MUST be the title of the new workspace.

FailedUsers: A list of users from the users field of CreateDws that could not be added to the list of authorized users in the new workspace. It is standalone XML that MUST use the following definition:

 <s:complexType name="UserType">
   <s:sequence>
     <s:element name="User" minOccurs="0">
       <s:complexType>
       <s:attribute name="Email" type="s:string"/>
       </s:complexType>
     </s:element>
   </s:sequence>
 </s:complexType>

AddUsersUrl: An absolute URL to a Web page that provides the ability to add users to the workspace.

AddUsersRole: Role for adding users to the workspace. If the users parameter to CreateDws (section 3.1.4.2.2.1) was not empty, the value MUST be the string "Microsoft.SharePoint.SPRoleDefinition".