cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <daniel.k...@iona.com>
Subject Re: Problem with interceptor chain
Date Tue, 24 Oct 2006 15:38:49 GMT

Jervis,

> I've come across an issue when trying to make SOAPHandlerInterceptor
> able to read SOAPMessage in the outbound direction.  Basically the
> problem is that our current outbound interceptor chain is not a flat
> chain, it looks like below:
>
> WrapperClassOutInterceptor
> LogicalHandlerInterceptor
> MessageSenderInterceptor
>     StaxOutInterceptor
>     SOAPHandlerInterceptor
>     SoapOutInterceptor
>         WrappedOutInterceptor
>         BareOutInterceptor


Out of curiosity, why couldn't the SOAPHandlerInterceptor do the same 
thing.   Make it:

 WrapperClassOutInterceptor
 LogicalHandlerInterceptor
 MessageSenderInterceptor
    StaxOutInterceptor
    SOAPHandlerInterceptor
       SoapOutInterceptor
           WrappedOutInterceptor
           BareOutInterceptor

Basically, the SOAPHandlerInterceptor would create a StAX writer that 
writes to the SAAJ model/DOM and then calls:
message.getInterceptorChain().doIntercept(message);

When that returns, the SAAJ model should be fully built up at which point 
you can call  the SAAJ handlers.  When they are done, stream the SAAJ to 
the output stream.


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194   F:781-902-8001
daniel.kulp@iona.com

Mime
View raw message