Showing progress of a response from a webservice

M

Mac

H

I have a asp.net application which calls a web service which in turns returns a xml string

The string returned can be quite large and in some cases time consuming so I want to be able to show the status of the download (e.g. progress bar or the like

What I need to know is the size of the string and how much of the string is downloaded at any point

Does anyone know how I could do this or something similar

Any pointers would be greatly appreciated

Regard

Ma
 
J

Jan Tielens

In a webservice call, I don't think it's possible to know in the beginning
how long the response will be. So I don't think you can solve this in just 1
web service call. If you really want to do this, you could split your
response in 10 equal chunks, and transfer them one by one, so you can keep
track of the progress.

Maybe you should take a look at async. web service calls too: they don't
block the UI either.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


Mac said:
Hi

I have a asp.net application which calls a web service which in turns returns a xml string.

The string returned can be quite large and in some cases time consuming so
I want to be able to show the status of the download (e.g. progress bar or
the like)
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top