class="java" name="code"> HTTPConduit http = (HTTPConduit) cxfClient.getConduit(); http.getClient().setReceiveTimeout(0); HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setConnectionTimeout(6000000);// 连接超时(毫秒) httpClientPolicy.setAllowChunking(false);// 取消块编码 httpClientPolicy.setReceiveTimeout(6000000);// 响应超时(毫秒)