[SWS-440] WebServiceTemplate still creates a connection even if a ClientInterceptor sets a Response Created: 23/Oct/08 Updated: 04/May/12 Resolved: 27/Jan/09
|Project:||Spring Web Services|
|Reporter:||Hans-Peter Störr||Assignee:||Arjen Poutsma|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Problem: When a response is set on the messagecontext by a ClientInterceptor.handleRequest, an actual connection to the webservice is still created and the Webservice is actually accessed in hasError or hasFault. I would expect that the WebServiceTemplate would not even create a connection in this case.
Background: I tried to write a ClientInterceptor for the WebServiceTemplate that simulates an actual webservice call during a selftest of the system. ClientInterceptor.hasRequest checks whether this is during a selftest and sets the response on the MessageContext and the other system should never be contacted at all.
|Comment by Arjen Poutsma [ 16/Dec/08 ]|
That said, the connection should not be opened. I will fix.
|Comment by Arjen Poutsma [ 27/Jan/09 ]|
I tried fixing this without breaking backwards compatibility and also make sure that all the various other transports and callbacks kept working, but couldn't. So I am resolving this as Won't Fix, unfortunately.
Overall, taking the route of a Mock Transport (
|Comment by Arjen Poutsma [ 04/May/12 ]|
Closing old issues