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.

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