Send request to IM wsdl through java script..

Hi All,

 

Check the following Javascript which uses doSOAPRequest():

 

var url = "http://172.25.2.5:13080/SM/7/IncidentManagement.wsdl";
var action = "http://172.25.2.5:13080/SM/7/RetrieveIncident";
var xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xmime=\"http://www.w3.org/2005/05/xmlmime\" xmlns:ns=\"http://schemas.hp.com/SM/7\" xmlns:cmn=\"http://schemas.hp.com/SM/7/Common\"><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..

 

re,

abhijit