-
1. Re: How to add parameters to the SOAP Header of the SOAP Req
tfennelly Mar 5, 2009 3:23 AM (in response to gdegoeij)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? -
2. Re: How to add parameters to the SOAP Header of the SOAP Req
gdegoeij Mar 6, 2009 5:32 AM (in response to gdegoeij)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).
Thanx. -
3. Re: How to add parameters to the SOAP Header of the SOAP Req
gdegoeij Mar 19, 2009 8:18 AM (in response to gdegoeij)Tom,
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.
Thx. -
4. Re: How to add parameters to the SOAP Header of the SOAP Req
tfennelly Mar 19, 2009 12:34 PM (in response to gdegoeij)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. -
5. Re: How to add parameters to the SOAP Header of the SOAP Req
gdegoeij Apr 2, 2009 5:29 AM (in response to gdegoeij)Tom,
I've created a patch and attached this to the JIRA issue JBESB-2454.
Grtz,
Gerbrand -
6. Re: How to add parameters to the SOAP Header of the SOAP Req
tfennelly Apr 2, 2009 5:31 AM (in response to gdegoeij)Nice one Gerbrand. Many thanks!!
-
7. Re: How to add parameters to the SOAP Header of the SOAP Req
nehalshah50 Mar 26, 2010 8:04 PM (in response to gdegoeij)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.
-
8. Re: How to add parameters to the SOAP Header of the SOAP Req
gdegoeij May 7, 2010 2:42 AM (in response to nehalshah50)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):
\SOMEJBOSS\server\SOMESERVER\deploy\soapui-client.sar\org\jboss\soa\esb\services\soapui
(where the SOME stuff should be replaced by your configuration)
Succes!
-
9. Re: How to add parameters to the SOAP Header of the SOAP Req
muralidharan.sa Mar 21, 2012 7:32 AM (in response to gdegoeij)Hi,
Can you give the sample code for this fix.
Thanks
-
10. Re: How to add parameters to the SOAP Header of the SOAP Req
tcunning Mar 21, 2012 8:19 PM (in response to muralidharan.sa)If you are talking about Gerbrand's patch, you can find it here :
-
11. Re: How to add parameters to the SOAP Header of the SOAP Req
muralidharan.sa Mar 22, 2012 4:00 AM (in response to tcunning)Thanks Tom.