Hi,
Having problems downloading files via Webservice.
I made a function in NAV2009sp1: "DownloadFunction()":
filename := CU419.DownloadTempFile('C:\Temp\test.txt');
EXIT(filename);
When calling this from client-side RTC it works perfectly, and downloads the file to temp-folder on client, however I need to call this function from a C# application:
UploadDownload_Binding upload = new UploadDownload_Binding();
upload.UseDefaultCredentials = true;
upload.Url = @"http://" + servername + "/DynamicsNAV/WS/" + company + "/Codeunit/UploadDownload";
string url = upload.DownloadFunction();
.. but when running from C# windows applikation I get: "Callback functions are not allowed".
Any ideas? I have seen people discussing the "MagicPath" in Codeunit 419, which makes sure that we are not prompted - but maybe this does not work outside RTC when calling via webservice??
Any ideas?
Thanks
Comments