Re: Async Webservice, State and progress.
From: Jonathan (Jonathan_at_discussions.microsoft.com)
Date: 12/09/04
- Next message: Tu-Thach: "RE: Create WebService without Visual Studio?"
- Previous message: Michael Zimdars: "Problem connection to ssl protected web service in .net"
- In reply to: Mujtaba Syed: "Re: Async Webservice, State and progress."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 9 Dec 2004 01:05:02 -0800
I'm sorry if my question was unclear.
I'll try to elaborate.
What i'm trying to achieve is:
* A webservice with 1 long running task
* The webservice keeps track of the progress of this task
* An aspx page that polls the webservice for this progress
Normally i'd try and do this with the aid of session-state, but i've read
that session-state in combination with async calls doesn't work as expected.
The Microsoft sample i mentioned does run the way it should, but only polls
the webservice whether it is completed.
I'd need to modify this, so that it can poll for it's current progress.
I don't know whether it's at all possible to do this, but it seems to me it
shouldn't (have) to be that difficult?
I hope this clears things up.
TIA.
"Mujtaba Syed" wrote:
> Having re-read your question, I realized that you need to know "how much"
> (whatever that would mean) of the web method has executed and "how much" is
> remaining.
>
> There is no way to predict this but the web service client can simulate this
> by storing a history of turnaround and predicting the time for n+1th
> executing by averaging the first n executions. This is just an approximation
> like all time based progress bars.
>
> Also, progress bars based on data downloaded to the total data to be
> downloaded make more sense.
>
> Thanks,
> Mujtaba.
>
> "Jonathan" <Jonathan@discussions.microsoft.com> wrote in message
> news:34D3F830-B763-4E1E-98A4-0FDA85DCDD90@microsoft.com...
> > Hello all,
> >
> > I don't have too much experience developing webservices, specially the
> > async
> > side of it, but i'm trying to develop an (web)app that needs an async call
> > to
> > a webservice.
> >
> > I'm trying to have a ASP.NET page, that calls a webservice, and refreshes
> > itself to show the current progress/status of the webservice. (eg. a
> > progress-bar)
> >
> > Reading through this page
> > (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenethowto08.asp)
> > has helped a lot, as it describes exactly what i need, except for the part
> > that i need to poll for a current status as well.
> >
> > Does anybody know how/where to implement such a poll in that sample, as i
> > can't figure out where and how i'd put it.
> > (I've been reading through just about every page i can find about the
> > subject, but haven't been able to find anything that sheds some light).
> >
> > TIA.
> >
> >
>
>
>
- Next message: Tu-Thach: "RE: Create WebService without Visual Studio?"
- Previous message: Michael Zimdars: "Problem connection to ssl protected web service in .net"
- In reply to: Mujtaba Syed: "Re: Async Webservice, State and progress."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|