I had a WSDL file then I used AXIS2C WSDL2C tool to create the client project.
I modified the axis2.xml file.
added this line in the beginning after <axisconfig name="Axis2/C">:
<parameter name="SO_TIMEOUT">8000</parameter>
I can now set the timeout. How can I handle it in my code? I mean How can I know that I've got a connection timeout or a socket timeout or the server responded properly.
Question Update: here is a link to my project :
You should analyze error code from
env->error->status_codeafter you invoke the client:Also if you want to set timeout programmatically: