My client application is authenticating with a SharePoint website using the Authentication web service in Windows Sharepoint Services 3.0. The client is not written in C# and I craft the SOAP request "manually".
The authentication fails with the
PasswordNotMatch LoginErrorCode when the provided password contains special characters. For instance, this password
xS-5[V!VQEo!-4 generated by SharePoint fails the authentication.
What kind of encoding/escaping/processing do I need to do on the password when I build the SOAP request for authentication? Here's an example request with the password mentioned above:
<?xml version=\"1.0\" encoding=\"utf-8\"?> <soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"> <soap:Body> <Login xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\"> <username>my.username</username> <password>xS-5[V!VQEo!-4</password> </Login> </soap:Body> </soap:Envelope>