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

`spring-integration-ws` WS DSL requires setting URI when WebServiceTemplate already has default URI set

Open dmfrey opened this issue 1 month ago • 1 comments

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

  1. 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.

dmfrey avatar Nov 14 '25 14:11 dmfrey

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.

artembilan avatar Nov 14 '25 16:11 artembilan