[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/Login", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] public LoginResult Login ( string username, string password )
The user's logon name for the SharePoint site.
The user's password.
Return ValueA LoginResult structure that contains either an error code in its ErrorCode field or the name of an authentication cookie in its CookieName property.
The cookie contains an authentication ticket that will be used to authenticate subsequent requests to the server.
You may need to impose length or format restrictions on the user name or password, such as requiring passwords to include a numeral or punctuation mark. If so, you must provide your own validation logic before passing the user name and password to the Login method. For performance reasons, this validation step should be performed locally on client computers.