Send request to IM wsdl through java script..

Hi All,


Check the following Javascript which uses doSOAPRequest():


var url = "";
var action = "";
var xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:soap=\"\" xmlns:xsi=\"\" xmlns:xsd=\"\" xmlns:xmime=\"\" xmlns:ns=\"\" xmlns:cmn=\"\"><soap:Body><ns:RetrieveIncidentRequest ignoreEmptyElements=\"true\"><ns:model><ns:keys/><ns:instance query=\"\" uniquequery=\"\" recordid=\"\"><ns:IncidentID type=\"\" mandatory=\"\" readonly=\"\">IM10181</ns:IncidentID></ns:instance><ns:messages/></ns:model></ns:RetrieveIncidentRequest></soap:Body></soap:Envelope>";

 //print ("The return value for xml: " xml);

var uid ="falcon";
var pass ="falcon";
var attachments = new Array();
var quote = doSOAPRequest( url, action, xml, uid, pass, 10, 10, 10, attachments );
print( "The return value is: " quote );



but it's not working i guess error with XML parsing kindly advice.


Kinldy advice on this..