Click here to Skip to main content
Rate this: bad
good
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 "
"http://ww2.tsetmc.com/webservice/tsepublic.asmx">
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
Comments
Sandeep Mewara at 27-Apr-11 12:58pm
   
Not clear. Can you please edit and rephrase it?
Rate this: bad
good
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.
  Permalink  
Comments
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
good
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.
  Permalink  
Comments
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 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,630
1 Sergey Alexandrovich Kryukov 7,022
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,525


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 27 Apr 2011
Copyright © CodeProject, 1999-2014
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