Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 2 Wochen, 5 Tagen
Letzter Beitrag:
vor 2 Wochen, 4 Tagen
Beteiligte Autoren:
André Labuschagné, Fabrice Harari

How To Monitor Data Download From A Webservice

Startbeitrag von André Labuschagné am 28.11.2017 10:47

Hi All

That says it all. What is the best way to display the progress of the download of data from a web service? Sounds crazy but I am seeing a chicken and egg situation looming before me.

Any ideas welcome - I now have clients claiming that they have no idea how long data is taking to download despite a message displaying that it is doing so. They now say that the app is hanging - which it is not.

Cheers
Andre

Antworten:

Hi André,

if most of the time is spent for the transfer of data (and not for the preparation/processing of data on the server side), -AND- if you use a REST type webservice -AND- if the server is sending back the content length information, then you can use httpprogressbar to show the download time.

In any other case, you can modify your process to split the data in small packets before sending it and merging them together when retrieving them, so that YOU can display a progressbar

Best regards

von Fabrice Harari - am 28.11.2017 11:15
Hi Fabrice

Thanks for that. I have never worked with a REST type web service before. I suppose it is time to start then. Hope I can use all the existing code to still deliver. Really do not want to rewrite all of this.

Also, we have been using the WAS to host the services. Most of our clients are still on 19. They will need to upgrade. Not sure at what version REST services were introduced.

Your second suggestion also makes sense but more work.

Lots to think about.

Cheers
Andre

von André Labuschagné - am 28.11.2017 11:29
Hi again,


>>Thanks for that. I have never worked with a REST type web service before. I suppose it is time to start then. Hope I can use all the existing code to still deliver. Really do not want to rewrite all of this.>Also, we have been using the WAS to host the services. Most of our clients are still on 19. They will need to upgrade. Not sure at what version REST services were introduced.

von Fabrice Harari - am 28.11.2017 11:38
Thanks Fabrice - we are upgrading anyway as there other things we are needing.

von André Labuschagné - am 29.11.2017 18:20
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.