Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

tiagomacul
Giga Sage

Create a SOAP message - CA SDM / CA Service Desk Manager - Login Method

 

After the soap message... SOAP message function

Create a SOAP message - CA SDM / CA Service Desk Manager

01. Navigate to / Navegue em:

System web Services  > Outbound > SOAP Message

find_real_file.png

02. Open your message

find_real_file.png

03. On SOAP Message Functions click New

find_real_file.png

04. Type

function:login

SOAP Action: Login

Authentication type:none

Envelope:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:login>
         <username>${login.username}</username>
         <password>${login.password}</password>
      </ser:login>
   </soapenv:Body>
</soapenv:Envelope>

find_real_file.png

 

05. Auto-generate variables

find_real_file.png

 06. type the credential on test Value

find_real_file.png

 07. Click test, follow a sample

find_real_file.png

 

 

Sample Script how to use it:

try { 
 var s = new sn_ws.SOAPMessageV2('CA SDM', 'login');

 s.setStringParameterNoEscape('login.password', 'YouwOwnPassword');
 s.setStringParameterNoEscape('login.username', 'Password');
 var response = s.execute();
 var responseBody = response.getBody(); 
 var status = response.getStatusCode();

	//Reading anwser
	var xmlDoc = new XMLDocument2();
	xmlDoc.parseXML(responseBody);
	var sid = xmlDoc.getNodeText('//loginReturn');

}
catch(ex) { 
 var message = ex.message;
}

 

Know-More-Now-Logo.jpg

Update set Planejando e executando mudanças no ambiente.

Business Rules Async

 Create a SOAP Message

 How to test the CA Service Desk Login Method

 

Was useful, please leave your feedback!

 

 

 

 

 
 
Comments
User674366
Tera Explorer

Thanks for sharing this.

Version history
Last update:
‎11-30-2018 12:49 PM
Updated by: