cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted <>
Subject Re: how do I exclude rest services from soap interceptors
Date Thu, 26 Apr 2012 19:19:39 GMT
I though you could but when I looked again I couldn't find any
documentation on doing so.

It would be a "workable" solution if I could find out how to do that. It's
not ideal though as I have a slew of soap and rest services, it would be
error prone to manually ensure security on each end point adverse to a
complete coverage approach.

On Thu, Apr 26, 2012 at 7:11 PM, Sergey Beryozkin <>wrote:

> Hi,
> On 26/04/12 04:20, Ted wrote:
>> Does anyone know if it's possible to exclude rest services from soap
>> interceptors?
>> My basic problems is ... I have both SOAP and Rest services exposed. I use
>> WSS4J interceptor for securing my SOAP calls.
>> The problem is when I make a rest call, it sends it through the soap
>> interceptor and I end up with an exception because it's trying to cast to
>> a
>> Soap message. (java.lang.ClassCastException:
>> org.apache.cxf.message.**XMLMessage cannot be cast to
>> org.apache.cxf.binding.soap.**SoapMessage)
>> My preferred solution would be to just use 1 bus and have a way to either
>> apply the WSS4J interceptor to the soap calls only, or to some how exclude
>> the jaxrs:server from the WSS4J interceptor. I would prefer to not have to
>> try and setup 2 buses... it looks like if I setup a second bus I have to
>> write a subclass the CXFServlet so I can set the bus? or is there a simple
>> way to setup 2 buses on the CXFServlet?
> Can you configure interceptors on per-endpoint basis ? Example, have
> WSS4JInInterceptor configured within jaxws:endpoint/jaxws:**inInterceptors
> ?
> Cheers, Sergey
> --
> Sergey Beryozkin
> Talend Community Coders
> Blog:


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message