Current, we do not provide this type of setup in CXF. If you still want to do this, you can get HttpConduit from the CXF proxy and set HTTPClientPolicy directly to HttpConduit.
HttpConduit httpConduit = (HttpConduit) ClientProxy.getClient(greeter).getConduit();
httpConduit.setHTTPClientPolicy(httpClientPolicy);
Thus, you can update the timeout before sending a request to the server.
source
share