I've got an application that has both JAX-WS and JAX-RS endpoints. I also have an interceptor that handles custom SOAP headers (extends AbstractSoapInterceptor). I've tried adding the interceptor via the <cxf:bus>/<cxf:inInterceptors> tag in the Spring context but this puts the interceptor at the bus level, which interferes with the JAX-RS endpoints. Invoking a JAX-RS endpoint results in a ClassCastException when it tries to invoke my interceptor's handleMessage(SoapMessage) method with an XMLMessage.
Is there a way to add the interceptor to just the SOAP binding, using Spring configuration only? Failing that, how can it be done programatically? Thanks, Adam Lewandowski -- View this message in context: http://www.nabble.com/Adding-interceptor-to-binding-via-configuration-tp25826173p25826173.html Sent from the cxf-user mailing list archive at Nabble.com.
