Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
hi . when i use web service , and recive data ( dataset )
i want take totall size of service that ready to download and calculate timing .
how to give siz in dataset that in webservice exist .
my web servis is "
fimedownloder not help to me bec filedownloader ( in archive exist ) only download zip file or other . not dataset
thanks .
Posted 27-Apr-11 7:50am
Sandeep Mewara at 27-Apr-11 12:58pm
Not clear. Can you please edit and rephrase it?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Well it depends on the service. Typically the data would go through HTTP as XML. So perhaps it's the size of that XML that you need? If so you cannot time it using a regular .NET web service client as it won't be accurate enough. Instead use an HTTP client and time the GET/POST requests - that would be more accurate.
mohammad alipour at 28-Apr-11 4:51am
thanks .but exit of webservice is Dataset . and have a pasword and username to connect .
i want connect to one of the services and take size.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

But why? If your web service is returning so much data that you have to worry about it, maybe you should reconsider your design and/or implementation.

If your web service is creating a file, let it create the file and return the size to calling application, and let that application determine how long it's going to take to transfer.
mohammad alipour at 28-Apr-11 4:46am
thanks . but i want use progress bar when recive dataset .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sascha Lefévre 485
1 Sergey Alexandrovich Kryukov 325
2 Maciej Los 230
3 Abhinav S 175
4 Peter Leow 110
0 Sergey Alexandrovich Kryukov 6,953
1 OriginalGriff 6,311
2 Maciej Los 2,732
3 Peter Leow 2,694
4 Abhinav S 2,652

Advertise | Privacy | Mobile
Web03 | 2.8.150414.1 | Last Updated 27 Apr 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100