You can add it in an <jaxws:inInterceptors> element directly within the
<jaxws:endpoint> element.

See http://cxf.apache.org/docs/jax-ws-configuration.html

On Fri, Oct 9, 2009 at 11:51 AM, Adam Lewandowski <[email protected]> wrote:

>
> 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.
>
>

Reply via email to