The password must be changed whenever the "Password Expired" (100005) error occurs. This error happens when:
- After the first login using a newly Saxo created password.
- After the first login using a Saxo reseted password.
- After the current password has been expired (this occurs every 3 months).
The WLC's code must be prepared to receive this (100005) error message and to handle it, with an appropriate ChangePassword request.
SuBject | URL |
WSDL | https://enterprise.saxobank.com/cmslive/CmsLoginService.svc?wsdl |
End Point URL | |
ChangePassword Operation | ChangePassword |
The request has the following parameters;
Parameter | Data type | Mandatory | Description |
username | String | Yes | Service Username |
password | String | Yes | Hashcoded Current Password |
newpassword | String | Yes | Hashcoded New Password |
SOAP 1.2 Definition
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08"> <soapenv:Header/> <soapenv:Body> <ns:ChangePasswordRequest> <ns:NewPassword>?</ns:NewPassword> <ns:Password>?</ns:Password> <ns:UserName>?</ns:UserName> </ns:ChangePasswordRequest> </soapenv:Body> </soapenv:Envelope>
Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <ActivityId CorrelationId="71fee9c3-8bfd-4a28-a19e-141833f610c3" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">guid</ActivityId> </s:Header> <s:Body> <ChangePasswordResponse xmlns="http://www.saxobank.com/service/cms/2013/08"> <PasswordChanged>bool</PasswordChanged> </ChangePasswordResponse> </s:Body> </s:Envelope>
Code Examples
Code example 6: ChangePassword request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.saxobank.com/service/cms/2013/08"> <soapenv:Header/> <soapenv:Body> <ns:ChangePasswordRequest> <ns:NewPassword>65sraD/dVWNP6Dv8Ybst9ta14ard33UjsK5nG7JnvwY=</ns:NewPassword> <ns:Password>BoiLZfF7MdaJdu/A54ts+kVNAEqjcG3qfSK7ApZgiqo=</ns:Password> <ns:UserName>UserWhite1</ns:UserName> </ns:ChangePasswordRequest> </soapenv:Body> </soapenv:Envelope>
Code example 7: ChangePassword Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <ActivityId CorrelationId="71fee9c3-8bfd-4a28-a19e-141833f610c3" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">9c20d496-826a-42c5-9596-e03f5335338b</ActivityId> </s:Header> <s:Body> <ChangePasswordResponse xmlns="http://www.saxobank.com/service/cms/2013/08"> <PasswordChanged>true</PasswordChanged> </ChangePasswordResponse> </s:Body> </s:Envelope>