spring-ws icon indicating copy to clipboard operation
spring-ws copied to clipboard

Lazy resolution of URL (or a way of post-processing it) [SWS-978]

Open gregturn opened this issue 9 years ago • 0 comments

Marten Deinum opened SWS-978 and commented

It would be nice if the WebServiceTemplate would provide the option to modify the target URI before actually doing the request.

We would like to use WebServiceTemplate in a cloud environment and use a DiscoveryClient much in the same way we now can use it with a RestTemplate annotated with @LoadBalanced.

However the current way of creating a connection/resolving the URL makes that hard, especially if one would introduce something like the RetryLoadBalancedInterceptor (See github for this.

We can ofcourse work around this in our client code by directly using a DiscoveryClient and implement the retry logic there but it would be nicer if this could be transparently handled by the template itself.


Affects: 2.4.0

gregturn avatar Dec 13 '16 07:12 gregturn