![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am new to web services and i am facing a problem. I am interested in downloading some file from internet and use it for furthur processing For eg. i have a file at a the following URL and i want to download that file in the web service which i am coding and use it for furthur. In normal window application i can achieve this by the following code link : http://www2.parc.com/csl/members/woo...f-WWW5-WWW.pdf WebClient WC=new WebClient(); string fileName = "c:\\" + link.Substring(link.LastIndexOf("/")+1); WC.DownloadFile(link,fileName); But if i try to achieve the same thing in web service using c#.net with the following code i am not able to do it. |
#3
| |||
| |||
|
|
"apondu" <apo... (AT) gmail (DOT) com> wrote in message news:1175596779.135238.77150 (AT) l77g2000hsb (DOT) googlegroups.com... Hi, I am new towebservices and i am facing a problem. I am interested indownloadingsome file from internet and use it for furthur processing For eg. i have a file at a the following URL and i want to download that file in thewebservicewhich i am coding and use it for furthur. In normal window application i can achieve this by the following code link : http://www2.parc.com/csl/members/woo...1996-Woodruff-... WebClient WC=new WebClient(); string fileName = "c:\\" + link.Substring(link.LastIndexOf("/")+1); WC.DownloadFile(link,fileName); But if i try to achieve the same thing inwebserviceusing c#.net with the following code i am not able to do it. Could you be more specific? What problem do you have when you try it in awebservice? John- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
On Apr 4, 2:13 am, "John Saunders" <john.saunders at trizetto.com wrote: "apondu" <apo... (AT) gmail (DOT) com> wrote in message news:1175596779.135238.77150 (AT) l77g2000hsb (DOT) googlegroups.com... Hi, I am new towebservices and i am facing a problem. I am interested indownloadingsome file from internet and use it for furthur processing For eg. i have a file at a the following URL and i want to download that file in thewebservicewhich i am coding and use it for furthur. In normal window application i can achieve this by the following code link : http://www2.parc.com/csl/members/woo...1996-Woodruff-... WebClient WC=new WebClient(); string fileName = "c:\\" + link.Substring(link.LastIndexOf("/")+1); WC.DownloadFile(link,fileName); But if i try to achieve the same thing inwebserviceusing c#.net with the following code i am not able to do it. Could you be more specific? What problem do you have when you try it in awebservice? John- Hide quoted text - - Show quoted text - Hi, I am getting a error message mentioning " HTTP 500 - Internal server error " I am doing something wrong, is it the correct procedure to achieve wht ai am trying to. Waiting for some help Regards, Govardhan |
#5
| |||
| |||
|
|
On Apr 4, 2:13 am, "John Saunders" <john.saunders at trizetto.com wrote: "apondu" <apo... (AT) gmail (DOT) com> wrote in message news:1175596779.135238.77150 (AT) l77g2000hsb (DOT) googlegroups.com... Hi, I am new towebservices and i am facing a problem. I am interested indownloadingsome file from internet and use it for furthur processing For eg. i have a file at a the following URL and i want to download that file in thewebservicewhich i am coding and use it for furthur. In normal window application i can achieve this by the following code link : http://www2.parc.com/csl/members/woo...1996-Woodruff-... WebClient WC=new WebClient(); string fileName = "c:\\" + link.Substring(link.LastIndexOf("/")+1); WC.DownloadFile(link,fileName); But if i try to achieve the same thing inwebserviceusing c#.net with the following code i am not able to do it. Could you be more specific? What problem do you have when you try it in awebservice? John- Hide quoted text - - Show quoted text - Hi, I am getting a error message mentioning " HTTP 500 - Internal server error " I am doing something wrong, is it the correct procedure to achieve wht ai am trying to. Waiting for some help Regards, Govardhan |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |