Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Web Service Question

Web Service Question

Scheduled Pinned Locked Moved C#
questionwcfsysadminjsonperformance
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Larry Rutledge
    wrote on last edited by
    #1

    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

    A D W 3 Replies Last reply
    0
    • L Larry Rutledge

      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

      A Offline
      A Offline
      Adrian Hall
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • L Larry Rutledge

        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

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #3

        You can also try using some proxy tunelling software like Multiproxy or some https free anonymity proxy service. I see dumb people

        1 Reply Last reply
        0
        • L Larry Rutledge

          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

          W Offline
          W Offline
          Wilco B
          wrote on last edited by
          #4

          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 ;).

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups