Calculating Web Service Response Time
-
Hi All, I want to calculate web service response time , if the response time is more than 30 second i want to stop all processing and show time out message. Please help me out Thanks Prabhakar Dwivedi
prabhakar dwivedi
-
Hi All, I want to calculate web service response time , if the response time is more than 30 second i want to stop all processing and show time out message. Please help me out Thanks Prabhakar Dwivedi
prabhakar dwivedi
Just call the web service asynchronously. After call is made start calculating the time. Check with the elapsed time with the timeout. If its greater place the error and dispose the request object. :) simple. :)
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
Just call the web service asynchronously. After call is made start calculating the time. Check with the elapsed time with the timeout. If its greater place the error and dispose the request object. :) simple. :)
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
No i have to call it synchornsly
prabhakar dwivedi
-
No i have to call it synchornsly
prabhakar dwivedi
Synchronous means the current thread will be blocked until response is received from the server. If you are holding the current thread, you cant do the calculation. But I think there is one wayout. You can load the page in an IFrame, and check if Iframe.document is loaded. This will give you an option to calculate the Time. Hope you got the idea. :)
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
Synchronous means the current thread will be blocked until response is received from the server. If you are holding the current thread, you cant do the calculation. But I think there is one wayout. You can load the page in an IFrame, and check if Iframe.document is loaded. This will give you an option to calculate the Time. Hope you got the idea. :)
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
Thanks Abhi I am thinking the same your second one , but the problem is i ahve only on text area where i have to show the response. wil try.... Thanks :)
prabhakar dwivedi
-
Thanks Abhi I am thinking the same your second one , but the problem is i ahve only on text area where i have to show the response. wil try.... Thanks :)
prabhakar dwivedi
Yes why not. Just create an
IFrame
dynamically using Javascript.var ifr = document.createElement('IFrame');
Load the document and show the response time. Feel free to tell me if you cant solve this issue. :)Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
Yes why not. Just create an
IFrame
dynamically using Javascript.var ifr = document.createElement('IFrame');
Load the document and show the response time. Feel free to tell me if you cant solve this issue. :)Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
Thanks again Abhi but as per my requrment , i can not use java script X| I am thinking about Timer control, have you any idea how to use timer control in this type of situation Thnaks a lot
prabhakar dwivedi