I have the below requirement in spring integration.
- Receive the web service request.
- Create a custom payload.(This will be the output of service activator)
- Call 2 stored procedures in sql server. The first one returns an out parameter. I have to use this out parameter, as well as the list of items in the custom payload to insert data into DB.
- Proceed to generate the response message using the payload generated in step 2 using another service activator
Please let me know if i can achieve step 3 using jdbc stored procedure outbound gateway. Sample code will be of great help. Thanks in advance...