Hi,

       I have web service client using CXF. My client use Dispatch
mechanism to make Web Service calls. One of my service is taking long
time to return, hence I would like to increase the default SO time and
trying that in the following way. Seems, it is not working. Anything I
am missing?

 

            Client client =
((org.apache.cxf.jaxws.DispatchImpl)resourceDataSource).getClient(); 

            HTTPConduit http = (HTTPConduit) client.getConduit();

            HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();

            httpClientPolicy.setConnectionTimeout(36000);

            httpClientPolicy.setReceiveTimeout(36000);

            http.setClient(httpClientPolicy);

 

Regards

Raman

Reply via email to