@sethcall I got it using 'request':
var headers = [];
headers['User-Agent-x'] = 'SuiteScript-Call';
headers['Content-Type'] = 'text/xml';
headers['SOAPAction'] = "POST";
request.post(
{
url: '
http://briliaspl.azurewebsites.net/api',
body: JSON.stringify(doc.data),
headers: headers
},
function (error, response, body) {