> On Nov 6, 2014, at 2:33 PM, smirnov.kirill 
> <[email protected]> wrote:
> 
> Thanks a lot for your reply, but unfortunately this won't help me :(
> 
> 1) Sorry, I forgot to mention that I need HTTP headers, not SOAP ones (and I
> know that it is also possible to specify SOAP headers using low-level
> providers http://cxf.apache.org/docs/provider-services.html)
> 2) Interceptor will not help me, cause I need to put dynamic data in the
> header, which I can not calculate in interceptor. I can calculate it just
> when I call my service using SEI.


Map<String, List<String>> headers = new TreeMap<String, 
List<String>>(String.CASE_INSENSITIVE_ORDER);
headers.put(“MyHeader”, Arrays.asList(“MyValue”));
dispatch.getRequestContext().put(MessageContext.HTTP_REQUEST_HEADERS, headers);




-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to