Problem: Download files from server via Webservice

marvinqmarvinq Member Posts: 69
edited 2013-01-23 in NAV Three Tier
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

  • deV.chdeV.ch Member Posts: 543
    Have a look at my answer in your other thread, it's the same problem, so you could have used only one topic for this.
Sign In or Register to comment.