logo

NJP

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

Import · Dec 04, 2018 · article

Create a SOAP message - CA SDM / CA Service Desk Manager - LOGOUT 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

image

02. Open your message

image

03. On SOAP Message Functions click New

image

04. Type

function:login

SOAP Action: Logout

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:logout>
         <sid>${logout.sid}</sid>
      </ser:logout>
   </soapenv:Body>
</soapenv:Envelope>

image

05. Auto-generate variables

image

06. type the credential on test Value

image

07. Click test, follow a sample

image

Sample Script how to use it:

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

 s.setStringParameterNoEscape('logout.sid', '773608655');
 var response = s.execute();
 var responseBody = response.getBody(); 
 var status = response.getStatusCode();
}
catch(ex) { 
 var message = ex.message;
}

image

Update set Planejando e executando mudanças no ambiente.

Business Rules Async

Create a SOAP Message

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

How to test the CA Service Desk Login Method

Was useful, please leave your feedback!

View original source

https://www.servicenow.com/community/itsm-articles/create-a-soap-message-ca-sdm-ca-service-desk-manager-logout/ta-p/2316923