Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
Sandeep Mewara 27-Apr-11 12:58pm    
Not clear. Can you please edit and rephrase it?

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.
 
Share this answer
 
Comments
mamali alipour 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.
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.
 
Share this answer
 
Comments
mamali alipour 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900