The CMS Live Login Service request Login allows the White Label to log into the CMS API and receive a response with a ticket.
SuBject | URL |
WSDL | https://enterprise.saxobank.com/cmslive/CmsLoginService.svc?wsdl |
End Point URL | |
Operation | Login |
The request has the following parameters;
Parameter | Data type | Mandatory | Description |
username | String | Yes | Service Username |
password | String | Yes | Hashcoded 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:LoginRequest> <!-Optional:-> <ns:Password>string</ns:Password> <!-Optional:-> <ns:UserName>string</ns:UserName> </ns:LoginRequest> </soapenv:Body> </soapenv:Envelope>
Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <h:SessionId xmlns:h="http://www.saxobank.com/service/cms/2013/08">string</h:SessionId> <ActivityId CorrelationId="c129b05a-85f1-48a4-bf61-0d4a39d24122" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">guid</ActivityId> </s:Header> <s:Body> <LoginResponse xmlns="http://www.saxobank.com/service/cms/2013/08"/> </s:Body> </s:Envelope>
Code Examples
Code example 2: Login 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:LoginRequest> <ns:Password>BoiLZfF7MdaJdu/A54ts+kVNAEqjcG3qfSK7ApZgiqo=</ns:Password> <ns:UserName>UserWhite1</ns:UserName> </ns:LoginRequest> </soapenv:Body> </soapenv:Envelope>
Code example 3: Login Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <h:SessionId xmlns:h="http://www.saxobank.com/service/cms/2013/08"> tcIVanVACqdvpkWcdxHQmW33mX2PxBFHuJ4HZziA5bg=</h:SessionId> <ActivityId CorrelationId="c129b05a-85f1-48a4-bf61-0d4a39d24122" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">4bb73799-8b49-4486-84fb-4d34302d99ad</ActivityId> </s:Header> <s:Body> <LoginResponse xmlns="http://www.saxobank.com/service/cms/2013/08"/> </s:Body> </s:Envelope>
Please Note: If the White Label is executing the login, for the first time, a "Password Expired" (100005) error message will be returned. This is due to the fact that the user password, selected in the request form, is a first time password. The password must then be changed, as described in ChangePassword Request.