how can i use the rest api to send soap message ?

chercm
Mega Sage

How can i do that ? The recipient is using Soap message with token

 

makeDellCaseAPIRequest: function(requestBody) {
// Create RESTMessageV2
var restMessage = new sn_ws.RESTMessageV2('DellCaseManagementAPI', 'POST'); // Replace 'DellCaseManagementAPI' with the actual name of your RESTMessageV2

// Set the request body
restMessage.setRequestBody(JSON.stringify(requestBody));

// Set additional headers if needed
restMessage.setRequestHeader('Content-Type', 'application/json');

// Execute the REST message
var response = restMessage.execute();

return response;
},

type: 'DellTechDirectAPI'
};

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, if you are sending SOAP messages then I would look at using the SOAPMessageV2 API

SOAPMessageV2 | ServiceNow Developers