how can i use the rest api to send soap message ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 05:14 PM
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'
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 06:09 PM
Hi, if you are sending SOAP messages then I would look at using the SOAPMessageV2 API
SOAPMessageV2 | ServiceNow Developers