The problem here is that you are mixing up the WS-SecurityPolicy
configuration properties (which are set as JAX-WS properties), and the
WSS4J Out/In Interceptors, where you supply the configuration tags to the
constructor. You can't configure the WSS4JOutInterceptor via
@EndpointProperty annotations. If you are using a policy, then you don't
need to configure the WSS4JOutInterceptor at all, as CXF will set all this
up for you - in this case you can use the @EndpointProperty annotations.

Colm.

On Wed, Jan 21, 2015 at 2:31 AM, Rajesh Rao <[email protected]> wrote:

> I am using a "code first" approach for building web services.  I have been
> able to set pretty much all the properties for InInterceptor using
> EndpointProperty annotation like described below.
>
> I see many examples where the spring approach is used to set the properties
> for OutInterceptor like
>
> However I do not see any example to set the properties for OutInterceptor.
> I
> have already tried
>
> and this
>
> but to no avail. Basically these are not taking effect, as the response is
> not getting signed/encrypted using these. Can anyone let me know how this
> can be set in a "code first" approach using Java annotation?
>
> Thanks in advance for helping out.
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/OutInterceptor-properties-using-Java-Annotations-tp5753339.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to