Tag Archives: Apache Axis2

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 […]

Resolving SOAPFaultException caused by com.ctc.wstx.exc.WstxUnexpectedCharException

If you’re using any of these for Web Services – Axis2, CXF etc. – that internally makes use of Woodstox XML processor (wstx), and getting an exception like this during webservice calls, the problem is that the wstx tokenizer/parser encountered unexpected (but not necessarily invalid per se) character; character that is not legal in current […]