Hi Team,
We are trying to make a SOAP call from the adobe campaign java script and it is having basic authentication mechanism, when we tried to hit the url we are able to connect to the external server / system from SOAP UI, but when we use the same SOAP body in our java script activity we are getting error as INT - 150012 The HTTP query retured a 'Internal Server Error' type error (500) '. Hoping that we are doing some mistake in our JS activity while we are trying to send the data to external system. Requesting an help here :-
var req = new HttpClientRequest("<external url>");
req .header["Content-Type"] = "text/xml; charset=utf-8";
req .header["SOAPAction"] = "<url>";
req .method = "POST";
req .header["Authorization"] = "Basic " +"<base64 encoded credentials>";
//req .header("Authorization","Basic" +"<base64 encoded credentials>");
//req .execute();
vars.soapreq= '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ext="http://<external system url>">'+
'<soapenv:Header/>'+
'<soapenv:Body>'+
.
.
.
.
</soapenv:Body>+
'</soapenv:Envelope>';
logInfo("Ending soap request");
req.execute();
var req2= req.response;
logInfo("Response is"+req2.body.toString());
Thank you,
Adithya