Ways to consume a WebService returning a large dataset

C

Cybertof

Hello,

I'm consuming webservice which returns a large dataset.

- 1st step was a synchronous call.
- 2nd step was making it asynchronous with this method
(http://www.xamlon.com/kb/Article.aspx?id=10157)

My problem is that the Callback is fired only at the end of the dataset
transfer, and i have no way to know the progress of the transfer.

Do you have an idea how to read the dataset result from the webservice
and beeing able to display the progress 'in real time' ?


Regards,
Cybertof.
 
A

Alex Passos

Try and implement it in its simplest form which is to submit an HTTP
GET/POST and stream the XML into a variable which can later be used to
populate an XmlDocument for parsing. All of this of course can happen in a
worker thread and as you read from the stream you can lock your code to
update a progress bar.
 

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

Top