Hi Martin,

I'm trying to do the same use case you reported.

I need to set the default actor with some username token and add another
specific actor with some other username token.

I'm trying to set the interceptors to the JaxWsProxyFactoryBean in the
context xml.

        <property name="outInterceptors">
            <list>
                <ref bean="wss4jOutInterceptor"/>
                <ref bean="customWss4jOutInterceptor"/>
            </list>
        </property>


    public CustomWSS4JOutInterceptor(Map<String, Object> props) {
        super(props);
        id = getClass().getName();
        id += System.identityHashCode(this);
    }

    public String getId() {
        return id;
    }

With the above stuff, my custom interceptor is still not added to the
header.

Could you provide some details on how you customized the interceptor and
what configuration was added to the client to get this custom interceptor
added to the soap header.

Any help is much appreciated.

Thanks,
Manoj




--
View this message in context: 
http://cxf.547215.n5.nabble.com/WS-Security-How-to-insert-two-Security-elements-in-SOAP-header-tp5721679p5728516.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to