FTP with Ax 2009

LogithaLogitha Member Posts: 2
edited 2011-04-29 in Dynamics AX
I want to connect FTP from ax 2009. I used WinInet Class and also i called this class from one method which is given below.

static void TestUploadFTP(Args _args)
{
int hdl,g;
WinInet inet;
;
inet = new WinInet();
hdl = inet.internetConnect('ftpSite','username','password');
Inet.FtpGetFile(hdl, 'RemoteFile', 'LocalFile');
inet.internetCloseHandle(hdl);
}

But in this method , that "hdl" (the bold line) always returns 0.
Pls anyone help me....
Sign In or Register to comment.