curl -k -v -H "SOAPAction: urn:login" -H "Content-Type: text/xml" -d @req.xml https://localhost:9443/services/AuthenticationAdmin
req.xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://org.apache.synapse/xsd">
<soapenv:Header/>
<soapenv:Body>
<aut:login xmlns:aut="http://authentication.services.core.carbon.wso2.org">
<aut:username>admin</aut:username>
<aut:password>admin123</aut:password>
<aut:remoteAddress>localhost</aut:remoteAddress>
</aut:login>
</soapenv:Body>
</soapenv:Envelope>