I need to invoke a SOAP web-service that requires a calling ID to be drawn before it is invoked.
So I recon, two invocations of web service in the action pipeline
1) get a calling id from the website
2) invoke the "main" web service with the calling id as one of the parameters and the the rest of the parameters filled with initial message payload
My problem is, that I don't know where to store the initial message payload while retrieving the calling ID, because I need this payload to construct the request to the main web service.
Do I need to save it to a DB and fetch it afterwards or can I preserve it in the message so it is available after I retrieved the calling ID in the first web service invocation?
I guess "KISS" applies for this one...
Make a copy of the initial payload and store it in a property in the message body OTHER THAN the default location before invoking the first webservice