[SWS-835] HttpComponentsMessageSender inintuitive constructor Created: 22/Jun/13  Updated: 19/Aug/13  Resolved: 03/Jul/13

Status: Resolved
Project: Spring Web Services
Component/s: Core
Affects Version/s: 2.1.3
Fix Version/s: 2.1.4

Type: Improvement Priority: Minor
Reporter: Erik van Konijnenburg Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relate
relates to SWS-838 HttpComponentsMessageSender: Use the ... Resolved

 Description   

HttpComponentsMessageSender has two constructors, with and without HttpClient, and the one with HttpClient omits adding a SoapRemoveHeaderInterceptor.

This breaks in org.apache.http.protocol.RequestContent with
new ProtocolException("Content-Length header already present"),
but only in some containers (oc4j) and not in others (jetty, eclipe); this makes the issue hard to debug.

Adding a note to the javadoc would help the developer pick the proper constructor to avoid this issue.

git pull request coming up.



 Comments   
Comment by Arjen Poutsma [ 02/Jul/13 ]

Git pull request at https://github.com/SpringSource/spring-ws/pull/5

Generated at Mon Dec 11 00:25:26 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.