New updates: with now have a use case where we need to set up dynamically the SOAP header.
However we realized that the solution consisting in using an XSLT to generate the SOAP headers is not sufficient. Indeed when the flow arrives on the SOAP provide (where the XSLT would be executed) the message has changed and we don't have anymore the needed content to create the headers.
We need global solution to manage headers at any time of the flow. We think that the proper way would be to be able to set up at any point of the flow the "javax.jbi.messaging.protocol.headers". Then the question is : on what BC/SE would it be possible to set up these jbi properties: maybe a specific SE for editing jbi properties?
Then the SOAP provide instead of injecting static headers would only generates the SOAP header with the content in the jbi properties. Then the question is: how to render XML structure in the jbi property?
This solution would solve the 2 parts of this issue, the first as evoked above, and the second because if there was already headers in the incoming request, there would be set in the jbi property by the SOAP consume and then treated as any other header information.
New updates: with now have a use case where we need to set up dynamically the SOAP header.
However we realized that the solution consisting in using an XSLT to generate the SOAP headers is not sufficient. Indeed when the flow arrives on the SOAP provide (where the XSLT would be executed) the message has changed and we don't have anymore the needed content to create the headers.
We need global solution to manage headers at any time of the flow. We think that the proper way would be to be able to set up at any point of the flow the "javax.jbi.messaging.protocol.headers". Then the question is : on what BC/SE would it be possible to set up these jbi properties: maybe a specific SE for editing jbi properties?
Then the SOAP provide instead of injecting static headers would only generates the SOAP header with the content in the jbi properties. Then the question is: how to render XML structure in the jbi property?
This solution would solve the 2 parts of this issue, the first as evoked above, and the second because if there was already headers in the incoming request, there would be set in the jbi property by the SOAP consume and then treated as any other header information.