Here is our Web service in C#. 1: [WebMethod] 2:publicvoid DownloadFile(string fileName) 3: { 4: HttpContext returnContext = HttpContext.Current; 5:string url = "http://localhost" + @"/" + fileName; 6: 7: FtpWebRequest ftpRequest = (FtpWebRequest)FtpWebRequest.Create(new Uri(url)); 8: ftpRequest.Credentials = new NetworkCredential(UserId, UserPassword); 9: ftpRequest.Method = WebRequestMethods.Ftp.DownloadFile; 10: 11:using (FtpWebResponse ftpResponse = ...
|
5
proggs |
Friday, February 26, 2010 2:55:55 PM GMT
Tuesday, February 23, 2010 9:36:59 PM GMT
|




Комментариев нет, оставьте первый комментарий.