WssInterop.CreateWssSite Method

Creates a SharePoint site for the specified project and server.

Namespace:  [WssInterop Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/WssInterop.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/WssInterop.asmx?wsdl

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/WssInterop/CreateWssSite", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/WssInterop/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/WssInterop/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub CreateWssSite ( _
    projectUID As Guid, _
    wssServerUID As Guid, _
    wssWebFullUrl As String, _
    webTemplateLcid As Integer, _
    webTemplateName As String _
)
'Usage
Dim instance As WssInterop
Dim projectUID As Guid
Dim wssServerUID As Guid
Dim wssWebFullUrl As String
Dim webTemplateLcid As Integer
Dim webTemplateName As String

instance.CreateWssSite(projectUID, wssServerUID, _
    wssWebFullUrl, webTemplateLcid, _
    webTemplateName)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/WssInterop/CreateWssSite", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/WssInterop/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/WssInterop/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void CreateWssSite(
    Guid projectUID,
    Guid wssServerUID,
    string wssWebFullUrl,
    int webTemplateLcid,
    string webTemplateName
)

Parameters

  • projectUID
    Type: System.Guid
    The unique identifier of the project.
  • wssServerUID
    Type: System.Guid
    The unique identifier of the server within a farm.
  • wssWebFullUrl
    Type: System.String
    The full URL of the SharePoint site to create.
  • webTemplateLcid
    Type: System.Int32
    The locale identifier of the site template.
  • webTemplateName
    Type: System.String
    The name of the site template.

Remarks

Project Server Permissions

If the ManageWindowsSharePointServices permission is not explicitly denied, the CreateWssSite method checks whether the user has one of the following permissions.

Permission

Description

ManageWindowsSharePointServices

Allows a user to manage the project site. Global permission.

NewProject

Allows a user to create a project. Global permission.

PublishProject

Allows a user to publish the specified project. Category permission.

See Also

Reference

WssInterop Class

WssInterop Members

WssInterop Web Service

Other Resources

Locale ID (LCID) Chart