Ways to consume a WebService returning a large dataset

  • Thread starter Thread starter Cybertof
  • Start date Start date
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.
 
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.
 
Back
Top