cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jim ma <>
Subject PolicyVerificationInterceptor
Date Mon, 05 Jul 2010 08:02:34 GMT
Hi all ,

When I ran a service with ws addressing policy enabled and an handler
which always throw exception configured in
server side . When I sent a soap request WITHOUT wsa header ,
I saw the SOAPHandlerInterceptor in server side eat the WS addressing
violation exception and just throw the exception
in handler chain thrown .

Below is the intercetor chain sequence in server side and my analysis
comments :

                           #Add the wsa policy interceptorProvider and


                            #Here compose the WSA maps and already
know there is no wsa header in inbound soap message


                            # Here will call the Handler and throw
exception , the execute path  will  be directed to fault chain,
                                hence the WS addressing policy error
will not be reported.


                         #This will not be executed because
SOAPHandlerInterceptor throws exception


The above interceptor list is the normal execution path without
exception thrown in SOAPHandlerInterceptor.  As you can see ,
CXF actually can detect the ws addressing policy violation in MAPCodec
and throws the policy error immediately and not  pass in
the SOAPHandlerInterceptor.
So far our  policy check uses AssertionInfoMap to log the policy error
and checks the policy error in   "one point"
The actual policy errors  will not be displayed or reported when the
other intercetors throws exceptoin before the check point
So how can we enable our current policy framework to check error in
the interceptor and report it immediately when there is policy error ?


View raw message