SOAP messages for logging in


The following example shows how to format SOAP requests and responses for logging in.

Warning

Note

The following table lists the types of authentications that are supported:

Authentication protocol

Value in the XML file

Secure remote password (SRP)

SRP

LDAP Authentication

LDAP

Microsoft Windows Domain Authentication, with password

ADK_PASSWORD

RSA SecurID, with fixed passcode

SECURID

In the example below, the SRP authentication is specified. To use a different authentication protocol, replace the SRP value in the authenticationType and authType tags with the relevant value.

For information about using the various authentication types, see Authentication-for-RESTful-and-SOAP-web-services.

<!-- Login Request -->
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns2:loginUsingUserCredential
xmlns:ns2="http://bladelogic.com/webservices/skeleton/login">
<ns2:userName>BLAdmin</ns2:userName>
<ns2:password />
<ns2:authenticationType>SRP</ns2:authenticationType>
</ns2:loginUsingUserCredential>
</soapenv:Body>
</soapenv:Envelope>
</soapenv:Envelope>
<!-- Login Response -->
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns2:loginUsingUserCredentialResponse
xmlns:ns2="http://bladelogic.com/webservices/skeleton/login">
<ns2:return>
<ns1:authType xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">SRP</ns1:authType>
<authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd">
                               <id>1000010</id>
<name>BLAdmins</name>
</authorizedRoles>
<authorizedRoles xmlns="http://bladelogic.com/webservices/framework/xsd">
<id>2000004</id>
<name>wsrole_1278845840649</name>
</authorizedRoles>
<ns1:clientAddress xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
10.20.13.13
</ns1:clientAddress>
<ns1:expirationTime
xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
2010-07-13T00:38:37.163-04:00</ns1:expirationTime>
<ns1:maximumLifeTime
xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
2010-07-13T00:38:37.163-04:00</ns1:maximumLifeTime>
<ns1:rolePreference
xmlns:ns1="http://bladelogic.com/webservices/framework/xsd"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
<ns1:serviceTicketString
xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJ
BgUrDgMCGgUAMIAGCSqGSIb3DQEHAaCAJIAEggOJPFNl
zW+ANHiU/j3EMI00qW0WpA4kCGV5OukGeyTvA/3aZlKfyiikX8N+m0i4yKGOpEDtAAAAAAAA
</ns1:serviceTicketString>
<ns1:serviceUrl xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
service:authsvc.bladelogic:blauth:
//iBMC-45WG2D1:9840
</ns1:serviceUrl>
<ns1:serviceUrls xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
service:appsvc.bladelogic:blsess:
//iBMC-45WG2D1.adprod.bmc.com:9841
</ns1:serviceUrls>
<ns1:serviceUrls xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
service:proxysvc.bladelogic:blsess:
//iBMC-45WG2D1.adprod.bmc.com:9842
</ns1:serviceUrls>
<ns1:site xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
</ns1:site>
<ns1:updateSRPPasswordOnly
xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
false</ns1:updateSRPPasswordOnly>
<ns1:userName xmlns:ns1="http://bladelogic.com/webservices/framework/xsd">
BLAdmin</ns1:userName>
<ns1:webServicesUrls
xmlns:ns1="http://bladelogic.com/webservices/framework/xsd"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
</ns2:return>
<ns2:returnSessionId>urn:uuid:
                       AE0EDC189962B01FDC1278959914062
</ns2:returnSessionId>
</ns2:loginUsingUserCredentialResponse>
</soapenv:Body>
</soapenv:Envelope>
Warning

Note

For information about using different authentication types, see Authentication-for-RESTful-and-SOAP-web-services.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Server Automation 22.2