`spring-integration-ws` WS DSL requires setting URI when WebServiceTemplate already has default URI set
In what version(s) of Spring Integration are you seeing this issue?
7.0.0.RC2
Describe the bug
Ws.marshallingOutboundGateway will not start without specifying the .uri() in the DSL, even though the supplied WebServiceTemplate has a defaultUri set
To Reproduce
- Create WebService Marshalling Outbound Gateway, specifying only the WebServiceTemplate
return f -> f.handle(WS.marshallingOutboundGateway(webServiceTemplate);
Application fails to start, indicating the Ws.marshallingOutboundGateway requires the URI to be set
Expected behavior
Ws.marshallingOutboundGateway() should be able to infer the uri from the supplied WebServiceTemplate if the defaultUri has been set.
Thanks for the report, @dmfrey !
Unfortunately, that is not only a DSL level problem.
The logic in the AbstractWebServiceOutboundGateway has to be reworked to take a defaultUri from the provided WebServiceTemplate.
So, pushing it into the 7.1 as an improvement.