On Thursday, February 02, 2012 12:56:55 PM Michael Prieß wrote:
> @Daniel
> Thanks for the hint. Putting the interceptor behind the WSDL
> interceptor into the USER_PROTOCOL Phase works fine for me.
> 
> But the version element which I added to the header has nothing to do
> with the SoapVersion. I like to add a versioning element to the
> SoapHeader to do
> version based routing to different endpoints, which I registered in
> the BUS. At the moment the getDataBinding() Method always return null.
> Did I forget something?
> Can someone take a short look over my message?
> 
> for (Header header : list) {
>  System.out.println(header.getDataBinding()); // returns always null
>  }

You likely don't want the databinding.   Call the getObject() method.  That 
should return a DOM element of your header.

Dan


> 
> 
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:ws="http://ws.xserver.ptvag.com/";>
>   <soapenv:Header>
>     <version>3.0</version>
>   </soapenv:Header>
>   <soapenv:Body>
>      <ws:calculateExtendedRoute>
>         <!--Optional:-->
>         <arg0>foooooo</arg0>
>      </ws:calculateExtendedRoute>
>   </soapenv:Body>
> </soapenv:Envelope>
> 
> Regards,
> 
> Michael
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to