Hi, All you have to do is, set options.setTimeOutInMilliSeconds(1000000);
in the client code. You don't have to go into internals of HTTPClient. Once set it like prior, this will automatically configure the httpclien. If you need set timeout to be indefinite; then set options.setTimeOutInMilliSeconds(-1); but I wouldn't recommend this. Thank you Saminda On Jan 23, 2008 7:15 PM, acmclellen <[EMAIL PROTECTED]> wrote: > > Hi, > > My client initialization code is as below, and on submitting a request to > the web service, it still times-out after 15 seconds. Please help!! > > Thank you. > Regards, > Craig > > =========begin========= > MultiThreadedHttpConnectionManager manager = > new MultiThreadedHttpConnectionManager(); > HttpConnectionManagerParams params = manager.getParams(); > params.setSoTimeout(0); > params.setConnectionTimeout(0); > manager.setParams(params); > > HttpClientParams p = new HttpClientParams(); > p.setSoTimeout(0); > p.setConnectionManagerTimeout(0); > > HttpClient httpClient = new HttpClient(p, manager); > Options options; > options = serviceClient.getOptions(); > options.setProperty( > HTTPConstants.CACHED_HTTP_CLIENT, httpClient); > options.setProperty( > HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE); > > options.setTimeOutInMilliSeconds(0); > options.setCallTransportCleanup(true); > > =========end========= > -- > View this message in context: > http://www.nabble.com/axis2-client-timeout-even-with-timeouts-set-to-0-tp15041918p15041918.html > Sent from the Axis - Dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Saminda Abeyruwan Senior Software Engineer WSO2 Inc. - www.wso2.org