NetiQ IDM 4.0.2 AE


Hello can someone provide me the implementation of how to post some xml
content (body) to a external webservice using standard ECMA script?

I found urlGet() implementation on this forum, Anyone can help me out
with urPost() implementation?


function urlGet(urlString) {



try {
var url = new java.net.URL(String(urlString));
var connection = url.openConnection();

connection.setRequestProperty("Authorization", "Basic " +
"SWRlbnRpdHlNZ210OjZDamRjM1dk");
connection.connect();
var stream = connection.getInputStream();

var reader = new java.io.InputStreamReader(stream);
var sb = new java.lang.StringBuilder();
var c;

while ((c = reader.read()) != -1) {
sb.append(String.fromCharCode(c));
}
return sb.toString();
} catch(e) {
return e.toString();
}
}


--
belaie
------------------------------------------------------------------------
belaie's Profile: https://forums.netiq.com/member.php?userid=308
View this thread: https://forums.netiq.com/showthread.php?t=53113