NAV web service - passing parameter problem on SOAP function


I'm calling a Web Service from within NAV as follows:

Code: Select all
abc := 'jiki';
locautXmlDoc.async := FALSE;
'<soap:Envelope xmlns:soap="" xmlns:xsi="" >'+
'<soap:Body>' +
'<sendToSCTee xmlns:Temp="">' +
'<SubjectSC>'+abc+'</SubjectSC>' +
'</soap:Body>' +

and the web service method code is as code below

Code: Select all
public string sendToSCTee(string SubjectSC)
            return smtpctrl.SendEmail("", 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.

  • You should try to debug that code in the web Service to see if the subject is extracted properly in the web Service. The code which is supposed to do that is missing in your example, also the call to the web Service from within NAV.