Possible to add a Progress Bar to a Client consuming a slow Servic

J

johnmann56

Hello all. I have a Web Service written with VS .NET that takes up to a minute to process WebMethod calls from a client, due to the Service accessing and searching a large XML file (King James Bible). I would like to have a Progress Bar in the Client to show how far along the Service's processing of the request is. Any ideas on how to implement this? Thanks in advance.
John Mann
 
J

Jan Tielens

I think you can only accomplish this if you split the long web service call
into shorter (multiple) calls. Between each call you can update progress
bar.

If you only want to avaid blocking the user interface when the service is
calles, you can run the call on a background thread. For more info see:
http://samples.gotdotnet.com/quickstart/howto/doc/WinForms/WinFormsThreadMarshalling.aspx

--
Greetz
Jan
________________
Read my weblog: http://weblogs.asp.net/jan


johnmann56 said:
Hello all. I have a Web Service written with VS .NET that takes up to a
minute to process WebMethod calls from a client, due to the Service
accessing and searching a large XML file (King James Bible). I would like to
have a Progress Bar in the Client to show how far along the Service's
processing of the request is. Any ideas on how to implement this? Thanks in
advance.
 
J

johnmann56

Hello Jan. Yes, I concluded you're right, there doesn't seem to be any way to communicate from the Service back to the Client any value that indicates how far along the Service WebMethod is.
Thanks.
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top