NAV web service - passing parameter problem on SOAP function

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Not Answered This post has 0 verified solutions | 1 Reply | 1 Follower

2 Posts
16 Points
Joined: 2013-10-17
Last Online:
2014-3-24 11:29
Location: PJ, Malaysia
Tee Swee Chuan posted on 2013-10-17 12:27


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.

All Replies

1,694 Posts
31,874 Points
Joined: 2000-8-16
Last Online:
2015-8-18 14:43
Location: Vienna, Austria, Europe
Thomas Brodkorb replied on 2013-10-18 7:40
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.

Thomas Brodkorb

Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.


Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.


  • | Post Points: 5
Page 1 of 1 (2 items) | Get this RSS feed | Bookmark and Share