1
votes

I am new to spring integration and learning in the process. I will have to make two SOAP calls. 1st SOAP call --->use the 1st call response as 2nd SOAP request. And programmatically get the url and other request parameters from the database.

I was successfully able to make the call with this configuration

<int-ws:outbound-gateway id="Service" request-channel="requestChannel" reply-channel="responseChannel" uri="http://localhost:8080/core/v1" marshaller="marshaller" unmarshaller="marshaller"/>

I haven't used any activators or interceptors. just used xml and gateway interface. I have hardcoded the request values. Can someone help me how to get values from database and build this in a much better way.

1

1 Answers

0
votes

Use JDBC Outbound Gateway to retrieve data an pass it into WS Outbound Gateway.

You can find some samples on the matter: https://github.com/spring-projects/spring-integration-samples/tree/master/basic/jdbc