Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Everybody,

I am working on a mobile native application in Blackberry WebWorks. My application runs on Tomcat 5.5 which fetches data from an ASMX webservice running on IIS 7.5.

I am getting a timeout after a period of 2 mins during data-fetching operation. I can not over come this problem please help me to overcome.

I am setting the ajax timeout and in the config file I have also mentioned the timeout, still I am getting the timeout.

After a long research I found out that the problem lies with the ASMX service call. In a particular ASMX service method, the method is taking on an average of 4 mins to respond with the result due to involvement of a huge calculation. As the HTTP response is not coming back for a long time the calling application is getting timeout, my ASMX webservice is working properly.

I tried everything with server.xml file of Tomcat 5.5, included all the properties possible to overcome this but with no result.

Please help me in this regard.
Posted
Updated 30-Sep-12 8:39am
v2
Comments
db7uk 30-Sep-12 16:25pm    
have you tried <httpruntime executiontimeout="1200">
db7uk 30-Sep-12 16:26pm    
setting the httpRuntime executionTimeout="1200" in the web.config
Prantick 1-Oct-12 0:11am    
thanks db7uk for your reply. can you please tell me web.config of which application?
Prantick 1-Oct-12 0:23am    
Huge calculation is doing some insurance premium calculation depending upon some risks but it is working fine as it is working efficiently while the app is being run on web-browser. in this app also when i see the response of the app in debug mode in netbeans7 i am getting response but the phone app is getting disconnected from the tomcat server after 1 min every time, before the ASMX service could provide it the result

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