Re: How to return a request from a Web Service

From: Drebin (thedrebinNoSpam_at_hotmail.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 14:26:25 GMT

Web Services aren't typically "consumed" straight from a browser. You'd
probably be better off giving the user a web interface - and have as part of
that interface - give the user the option to download..

To do it automatically, either response.redirect there (I think) or

<script>
    window.location.href='/somedirectory/myfiletodownoad.pdf';
</script>

"fede" <ernie@jalepeno.com> wrote in message
news:F32AD9B9-F49B-48D1-9BDD-D0EC9B533020@microsoft.com...
> I realize this may be a very fundamental question but I have not been able
to figure out how to do something. I have a Web Service that copies a file
from an internal server to a location on the web server to make it available
on the web.
>
> The web service is invoked using the HTTP POST protocol. (It is passed in
as a URL from a browser)
>
> The end result I would like is that after I copy the file to the web
server the user that made the request would get prompted to download the
file or open it in a browser. It would be as if the user requested the file
directly from the web server. It is just that in this case the file was not
on the web server until the user made the request.
>
> I can copy the file and return a string with the url to the file. I am
trying to figure out how to go that last step of actually creating the
request on behalf of the user.
>
> Any help would be greatly appreciated...
> Thanks in advance


Quantcast