Asked
Active
Viewed 1,695 times
-1
-
how exactly is it not working? Add more details to the question – Reimeus Jul 30 '15 at 09:19
-
get compile error cant identify the symbol – Hasi Jul 30 '15 at 09:22
-
[Edit](http://stackoverflow.com/posts/31719808/edit) the question & add the details there – Reimeus Jul 30 '15 at 09:24
-
uh?, first of all, WHY do you need this?, don't you generate your classes with CXF? -> http://cxf.apache.org/download.html – Marco Tulio Avila Cerón Jul 30 '15 at 09:28
-
yah i generated classes with CFX.but how do i get header values.I have message handler class but how do i access getHeader method – Hasi Jul 30 '15 at 09:50
-
Ok, maybe this thread can help you? http://stackoverflow.com/questions/10479396/apache-cxf-set-http-header – Marco Tulio Avila Cerón Jul 30 '15 at 12:07
-
thanx.i got the answer – Hasi Jul 31 '15 at 10:31
1 Answers
1
This makes help to get soap header content
private List getHeaders() {
MessageContext messageContext = context.getMessageContext();
if (messageContext == null || !(messageContext instanceof WrappedMessageContext)) {
return null;
}
Message message = ((WrappedMessageContext) messageContext).getWrappedMessage();
List<Header> headers = CastUtils.cast((List<?>) message.get(Header.HEADER_LIST));
return headers;
}

Hasi
- 260
- 2
- 12