Tuesday, July 1, 2014

How to increase SOAP request timeout value in Websphere

How to increase SOAP request timeout value in Websphere?
Change "com.ibm.SOAP.requestTimeout" configuration setting.

Path : {WebSphere-Profile-Root-Folder}\properties
File name: soap.client.props
Parameter:
com.ibm.SOAP.requestTimeout : Default value is 180, 0 implies no timeout

So when is 180 seconds timeout not enough?
Answer:  Build automation tools like Jenkins use SOAP connectivity port to deploy applications and there might be "Connection reset" error if deployment step takes more than 180 seconds.

 Exception stack trace :
exception information: com.ibm.websphere.management.exception.ConnectorException
[wsadmin] org.apache.soap.SOAPException: [SOAPException: 
faultCode=SOAP-ENV:Client; msg=Connection reset; 
targetException=java.net.SocketException: Connection reset]