You can perform a transformation on the SOAP request and I was sure this could be parameterized. I thought the parameter map was passed down to the transformation, but I just looked at the code, and it's not being passed down.
I created a JIRA for this: JBESB-2454.
Fancy doing it and adding the patch file back to the JIRA?
I can try off course.
I haven't looked into the source code yet, but can you quickly describe where the changes should be made (before I get lost).
I could use some help here ;-)
I've downloaded the source code and I think you mean there needs some work to be done in the SoapUIClientService class? And then in the applySmooksTransform method?
I've also studied the Smooks project, but I can't discover any possibility to pass on external params to the Smooks filter process.
So, to sum up: I'm running a bit in the dark here and I really need to pass an ID that has to be inserted as an MessagID element in the SOAP Header.
That sounds about right Gerbrand.
Regarding Smooks... you can pass down the parameter Map by binding it into the Java bean context using the BeanRepository class (or BeanAccessor, depending on the version you're using). After doing this, the parameter Map can be used in all templating operations etc used in the transform.
I've created a patch and attached this to the JIRA issue JBESB-2454.
Nice one Gerbrand. Many thanks!!
Where is the SoapUIClientService class located? which JAR? I searched through the ESB server directory using jarscanner and couldn't find it. I am usign JBossESB 4.5 GA and I have the same issue as yours. I am struggling to add element in the SOAP message header.
That's because the SoapUIClientService class file is NOT packed in a JAR. You can find it in the following folder (assuming you have your ESB installed in a JBoss AS):
(where the SOME stuff should be replaced by your configuration)
Can you give the sample code for this fix.