Hi,
I’m calling a Web Service from within NAV as follows:
Code: Select all
CREATE(locautXmlDoc,FALSE,TRUE);
abc := 'jiki';
locautXmlDoc.async := FALSE;
locautXmlDoc.loadXML(
'<soap:Envelope xmlns:soap="[">schemas.xmlsoap.org/.../" xmlns:xsi="](http://schemas.xmlsoap.org/soap/envelope/)[">www.w3.org/.../XMLSchema-instance"](http://www.w3.org/2001/XMLSchema-instance) >'+
'<soap:Body>' +
'<sendToSCTee xmlns:Temp="['">http://tempuri.org/">'](http://tempuri.org/) +
'<SubjectSC>'+abc+'</SubjectSC>' +
'</sendToSCTee>'+
'</soap:Body>' +
'</soap:Envelope>');
and the web service method code is as code below
Code: Select all
public string sendToSCTee(string SubjectSC)
{
return smtpctrl.SendEmail("ab@xxx.com", null, null, IMailPriority.Normal, SubjectSC, IMailFormat.Html, "Testing", null, "CRONUS International Ltd_");
}
This is send email function by using NAV code calling web services. It is work on sending email by that codes above, however, i can’t pass parameter of “SubjectSC” to that function.
Does anyone have any ideas on what could be wrong?
Thanks in advance.