API login request fails after installing API patch
Symptoms
While calling the login method of Changepoint API, the response generated does not contain the access token and the value tag.
Error/warning messages
Below is the SOAP response from the server:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header> <wsa:Action>http://compuware.com/changepoint/CPWebService/WSLogin/LoginResponse</wsa:Action>
<wsa:MessageID>uuid:8ecd463a-5198-4b5e-9057-7c7361edc15f</wsa:MessageID> <wsa:RelatesTo>uuid:e92ac012-6fd9-4465-b215-d721523eeea8</wsa:RelatesTo> <wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:To> <wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-f1cdfa91-3d4e-4d03-885d-dccf799cf330"> <wsu:Created>2018-05-28T13:33:17Z</wsu:Created>
<wsu:Expires>2018-05-28T13:38:17Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<LoginResponse xmlns="http://compuware.com/changepoint/CPWebService/WSLogin">
<LoginResult>
<WSException>
<LogLevel>8</LogLevel>
<LogPath>C:\Program Files\Compuware\Changepoint\API\APILogs\</LogPath>
<Number>0</Number>
<Message/>
<Source>Changepoint.CPWebService.WSLogin.Login</Source>
<HaveErrors>false</HaveErrors>
</WSException>
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>
Reason
Connection string was not configured
Resolution
Use Login Settings Utility to configure the API Web Service connection string