Tag Archives: Stub

How to configure timeout duration at client side for axis2 web services?


Axis2 uses CommonsHTTPTransportSender by default, which is based on commons-httpclient-3.1. At transport level, there’re two types of timeouts that can be set: 1. Socket Timeout 2. Connection Timeout Here’s how you can configure the above ones: Way #1: Configuring timeouts in axis2.xml Socket Timeout <parameter name=”SO_TIMEOUT”>some_integer_value</parameter> Connection timeout <parameter name=”CONNECTION_TIMEOUT”>some_integer_value</parameter> Way #2: Configuring timeouts in […]