The easiest thing to do might be to create an Interceptor that runs
pretty late in the interceptor chain (even the USER_LOGICAL phase
would be fine). In there, you can get a
List<org.apache.cxf.headers.Header> object from the message via:
msg.get(Header.HEADER_LIST);
By default, each Header in there will be a DOM element that you can
process as you need.
Likewise, on the way out, add Header objects to that list.
Dan
On Jun 3, 2008, at 6:00 AM, azo80 wrote:
Hi,
I've been looking for a solution for quite a long time but
unfortunately with no success.
I want to use CXF interceptors to retrieve and store SAML2 tokens in
WS-Security inside SOAP header. I found some examples based on
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor but after
running some tests it seems it is bundled with openSAML1 while I
need to use openSAML2.
The only thing I want to do witch interceptor is to extract
org.w3c.dom.Element and then use openSAML2 to convert Elements
content to object model and of course in the other way round.
Can anyone point me the direction I should go to get things work?
Az
---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog