Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to increase the time out period of the web service call

 
Darshan Shiv
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can anyone tell me how to increase the time out period of a web service call in axis2.
For an instance i have a web service call method A and processing time of that method is too long,so how can i manually change the timeout period.
Because sometimes i get Axis fault error if its taking too long for a web service to process a method.

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Does the timeout occur on the server side or on the client side?

For Axis 1 client side timeout, check this page: http://ws.apache.org/axis/faq.html
For Axis 2, both client and server, check: http://ws.apache.org/axis2/0_94/http-transport.html
Best wishes!
 
Darshan Shiv
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Krizsan wrote:Hi!
Does the timeout occur on the server side or on the client side?

For Axis 1 client side timeout, check this page: http://ws.apache.org/axis/faq.html
For Axis 2, both client and server, check: http://ws.apache.org/axis2/0_94/http-transport.html
Best wishes!


Hi Ivan,

Thanks for the reply.
I am not using the Axis as the standalone application ,i have copied the Axis War file inside the web-app folder of Tomcat.
I get this error on the client side.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
With Axis 1, try the org.apache.axis.client.Call.setTimeout() method.
With Axis 2, try the org.apache.axis2.client.Options.setTimeOutInMilliSeconds().
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic