CREATE(locautXmlDoc,FALSE,TRUE); abc := 'jiki'; locautXmlDoc.async := FALSE; locautXmlDoc.loadXML( '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >'+ '<soap:Body>' + '<sendToSCTee xmlns:Temp="http://tempuri.org/">' + '<SubjectSC>'+abc+'</SubjectSC>' + '</sendToSCTee>'+ '</soap:Body>' + '</soap:Envelope>');
public string sendToSCTee(string SubjectSC) { return smtpctrl.SendEmail("ab@xxx.com", null, null, IMailPriority.Normal, SubjectSC, IMailFormat.Html, "Testing", null, "CRONUS International Ltd_"); }
Comments
CREATE(XMLHttpConn,TRUE,TRUE);
XMLHttpConn.open(" Method name",Web Service URL", FALSE,HTTP Connection UserName", HTTP Connection Password");
XMLHttpConn.setRequestHeader('Host',HTTP Connection Host Name");
XMLHttpConn.setRequestHeader('SOAPAction',"Web Service Namespace" +
"Request Web Service Method");
XMLHttpConn.setRequestHeader('Content-Type',"HTTP Request Content-Type");
XMLHttpConn.send(locautXmlDoc);
how do i modify for the code above?
I think web services more or less require namespaces to be set on all elements; perhaps you should remove the ':Temp' part.
TVision Technology Ltd