aspose file tools*
The moose likes Web Services and the fly likes How to increase the time out period of the web service call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to increase the time out period of the web service call" Watch "How to increase the time out period of the web service call" New topic
Author

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

Darshan Shiv
Greenhorn

Joined: May 20, 2009
Posts: 6
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

Joined: Oct 04, 2006
Posts: 2198
    
    1
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

Joined: May 20, 2009
Posts: 6
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

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to increase the time out period of the web service call