LoginWindows.Login Method
Log on a user in ASMX-based applications for a Microsoft Project Server 2010 installation that has multi-authentication (claims- and Forms-based authentication).
Namespace: [LoginWindows Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/LoginWindows.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/LoginWindows.asmx?wsdl
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/LoginWindows/Login", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/LoginWindows/", _
ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/LoginWindows/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function Login As Boolean
'Usage
Dim instance As LoginWindows
Dim returnValue As Boolean
returnValue = instance.Login()
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/LoginWindows/Login", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/LoginWindows/",
ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/LoginWindows/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public bool Login()
Return Value
Type: System.Boolean
Because of claims authentication for Windows applications, the Login method in applications based on Windows Communication Foundation (WCF) always returns false; no SOAP exceptions are returned.
Remarks
Note
The Login method should not be used for applications that use WCF or that access the PSI on a Project Server installation that uses only claims authentication. Applications can use integrated Windows authentication automatically through claims authentication.
For more information about developing ASMX-based applications in a multi-authentication environment, see Prerequisites for ASMX-Based Code Samples.