title: spring-ws deprecated DefaultHttpClient
body: <p>I found that HttpComponentsMessageSender default constructor in spring-ws-core 3.4.0.RELEASE, which depends on httpclient 4.5.6, is instantiating a DefaultHttpClient() which is deprecated. However, when i tried to set a custom Httpclient with:</p>
  
  <pre><code>HttpComponentsMessageSender httpComponentsMessageSender = new HttpComponentsMessageSender(HttpClientBuilder.create().build());
  </code></pre>
  
  <p>httpComponentsMessageSender.setReadTimeout(1000l);</p>
  
  <p>i got:</p>
  
  <pre><code>Caused by: java.lang.UnsupportedOperationException: null
      at org.apache.http.impl.client.InternalHttpClient.getParams(InternalHttpClient.java:211) ~[httpclient-4.5.6.jar:4.5.6]
      at org.springframework.ws.transport.http.HttpComponentsMessageSender.setReadTimeout(HttpComponentsMessageSender.java:149) ~[spring-ws-core-3.0.4.RELEASE.jar:na]
  </code></pre>
  
  <p>Is that correct that spring uses a deprecated class by default?
  How should i set my custom HttpClient instance?
  it seems that if i set my own HttpClient i cannot configure it through HttpCompoemntsMessageSender.</p>
  
  <p>thanks,</p>