Web Service Question
-
Before I ask my question, let me give some quick background. My current employer has recently decided that downloading certain files (.zip, .exe, etc) slows down the internet performance for the rest of the internet users. So, as a result, they have modified the proxy server to no longer allow such downloads during peak internet hours (8:00 - 3:00 PST). Because of this, I am no longer allowed to download files I need for work without writing a 3 page justification and getting it signed off by 3 levels of managers and then waiting for the right department to give me access and hope the access they give me has a long enough window to get what I need. That's the background, now here's my question. Is it possible, and if so any ideas on how to go about it, to create a web service which I could give a URL (presumably to a .zip or .exe file) and it would get the file and then stream it to my client? I am still able to consume web services through our proxy, so this would solve my dilemma. Thanks in advance for any ideas, suggestions, help, pointers, etc. Larry
-
Before I ask my question, let me give some quick background. My current employer has recently decided that downloading certain files (.zip, .exe, etc) slows down the internet performance for the rest of the internet users. So, as a result, they have modified the proxy server to no longer allow such downloads during peak internet hours (8:00 - 3:00 PST). Because of this, I am no longer allowed to download files I need for work without writing a 3 page justification and getting it signed off by 3 levels of managers and then waiting for the right department to give me access and hope the access they give me has a long enough window to get what I need. That's the background, now here's my question. Is it possible, and if so any ideas on how to go about it, to create a web service which I could give a URL (presumably to a .zip or .exe file) and it would get the file and then stream it to my client? I am still able to consume web services through our proxy, so this would solve my dilemma. Thanks in advance for any ideas, suggestions, help, pointers, etc. Larry
Its definately possible (I wrote something similar in Perl with SOAP::Lite). In fact, it won't even be that hard. In C#, create a Web service, and then just use a WebRequest/WebResponse object to get the file (I hope you don't need to use HTTP POST to get your files!) and then serialize it and return it. -Adrian
-
Before I ask my question, let me give some quick background. My current employer has recently decided that downloading certain files (.zip, .exe, etc) slows down the internet performance for the rest of the internet users. So, as a result, they have modified the proxy server to no longer allow such downloads during peak internet hours (8:00 - 3:00 PST). Because of this, I am no longer allowed to download files I need for work without writing a 3 page justification and getting it signed off by 3 levels of managers and then waiting for the right department to give me access and hope the access they give me has a long enough window to get what I need. That's the background, now here's my question. Is it possible, and if so any ideas on how to go about it, to create a web service which I could give a URL (presumably to a .zip or .exe file) and it would get the file and then stream it to my client? I am still able to consume web services through our proxy, so this would solve my dilemma. Thanks in advance for any ideas, suggestions, help, pointers, etc. Larry
You can also try using some proxy tunelling software like Multiproxy or some https free anonymity proxy service. I see dumb people
-
Before I ask my question, let me give some quick background. My current employer has recently decided that downloading certain files (.zip, .exe, etc) slows down the internet performance for the rest of the internet users. So, as a result, they have modified the proxy server to no longer allow such downloads during peak internet hours (8:00 - 3:00 PST). Because of this, I am no longer allowed to download files I need for work without writing a 3 page justification and getting it signed off by 3 levels of managers and then waiting for the right department to give me access and hope the access they give me has a long enough window to get what I need. That's the background, now here's my question. Is it possible, and if so any ideas on how to go about it, to create a web service which I could give a URL (presumably to a .zip or .exe file) and it would get the file and then stream it to my client? I am still able to consume web services through our proxy, so this would solve my dilemma. Thanks in advance for any ideas, suggestions, help, pointers, etc. Larry
You could give a string as parameter to the path of the file when calling a webservice method (eg. DownloadFile("C:\\blah.exe") ).. That method just reads the file you specified into a byte[] and returns that. Then it would be the best to write a client which you run, and which allows you to specify the path and write the byte[] to a file so you actually saved the file. Ofcourse, if you do it exactly like this, you can download like everything, but I think thats another question ;).