WssInterop.UpdateProjectSitePaths Method
Changes the location of a project site URL, synchronizes user permissions, and updates the issues and documents lists for Project Server enhanced lists.
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/UpdateProjectSitePaths", 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 UpdateProjectSitePaths ( _
oldWebAppUid As Guid, _
oldSitePath As String, _
newWebAppUid As Guid, _
newSitePath As String, _
updateContentTypes As Boolean, _
synchronizeSitePermissions As Boolean _
)
'Usage
Dim instance As WssInterop
Dim oldWebAppUid As Guid
Dim oldSitePath As String
Dim newWebAppUid As Guid
Dim newSitePath As String
Dim updateContentTypes As Boolean
Dim synchronizeSitePermissions As Boolean
instance.UpdateProjectSitePaths(oldWebAppUid, _
oldSitePath, newWebAppUid, newSitePath, _
updateContentTypes, synchronizeSitePermissions)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/WssInterop/UpdateProjectSitePaths", 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 UpdateProjectSitePaths(
Guid oldWebAppUid,
string oldSitePath,
Guid newWebAppUid,
string newSitePath,
bool updateContentTypes,
bool synchronizeSitePermissions
)
Parameters
- oldWebAppUid
Type: System.Guid
The GUID of the current web application, as returned by ReadProjectSiteBaseUrls. The oldWebAppUid and oldSitePath parameters together uniquely identify the settings that are to be migrated.
- oldSitePath
Type: System.String
The URL of the current site path. Can be a null reference (Nothing in Visual Basic).
- newWebAppUid
Type: System.Guid
The GUID of the updated web application. The value must be a new GUID if newSitePath is not a null reference (Nothing in Visual Basic). If newSitePath is a null reference (Nothing in Visual Basic), newWebAppUid can be a null reference (Nothing in Visual Basic).
- newSitePath
Type: System.String
The URL of the updated location of the web application. Can be a null reference (Nothing in Visual Basic).
- updateContentTypes
Type: System.Boolean
True if content types in the web application are to be updated; otherwise, false.
- synchronizeSitePermissions
Type: System.Boolean
True if site permissions are to be resynchronized after changing the project site URL; otherwise, false.
Remarks
The UpdateProjectSitePaths method corresponds to the Bulk Update Project Sites page in Project Web App (https://ServerName/ProjectServerName/_layouts/pwa/Admin/UpdateSites.aspx).
Use the ReadProjectSiteBaseUrls method to get the current web application GUID and URL. If the oldSitePath parameter and the newSitePath parameter are both specified, UpdateProjectSitePaths changes the web application path to the new URL. If the old path and the new path are not both specified, UpdateProjectSitePaths updates the specified data on the current web application.
If updateContentTypes is True, UpdateProjectSitePaths updates the content type for issues and documents lists from a generic type to enhanced lists for Project Server.
Project Server Permissions
Permission |
Description |
---|---|
Allows a user to manage the project site. Global permission. |
|
Allows a user to administer services such as Active Directory settings and database timeouts. Global permission. |