OK well then you don't need to add the WSS4JOutInterceptor/WSS4JInInterceptor like you've been doing. Simply add in the properties that are required. If you need to sign and encrypt the message, then typically all you'll need are the following. You can set them on the JAX-WS port in code as follows:
((BindingProvider)port).getRequestContext().put(SecurityConstants.ENCRYPT_PROPERTIES, "receiver.properties"); ((BindingProvider)port).getRequestContext().put(SecurityConstants.ENCRYPT_USERNAME, "receiver"); ((BindingProvider)port).getRequestContext().put(SecurityConstants.SIGNATURE_PROPERTIES, "sender.properties"); ((BindingProvider)port).getRequestContext().put(SecurityConstants.SIGNATURE_USERNAME, "sender"); ((BindingProvider)port).getRequestContext().put(SecurityConstants.CALLBACK_HANDLER, "CallbackHandlerClass"); Colm. On Thu, Jan 18, 2018 at 10:47 AM, Al Grant <[email protected]> wrote: > Yes the WSDL does have security policies in it:-) > > > > -- > Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
