If you're doing UsernameToken you might be able to manually create the
headers (it's possible they won't be too complex): Links #52 and #53
here: http://www.jroller.com/gmazza/entry/blog_article_index , in
particular the links at the bottom of #53, provide additional options.
Glen
On 01/15/2013 04:19 PM, Martin Steffen Correa wrote:
Hello,
I'm new to CXF and I want to create a SOAP message with two Security
elements as follow:
<soap:Header>
<wsse:Security soap:actor="actor1" >
...
</wsse:Security>
<wsse:Security soap:actor="actor2" >
...
</wsse:Security>
</soap:Header>
How I can generate a message with two Security elements in SOAP header?
I configure my client with Spring:
<jaxws:client id="helloClient">
<jaxws:outInterceptors>
<ref bean="ut_actor1" />
<ref bean="ut_actor2" />
</jaxws:outInterceptors>
</jaxws:client>
Both ut_actor1 and ut_actor2 are
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor interceptors,
but only one interceptor is executed, it seems that is not possible to
define two interceptors of the same type.
Thanks,
Martin Steffen.
--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza