Hi Philip and Nicolas,
You can use cxf bc consumer with ws-security to do the authentication,
take a look at testcase CxfBcSecurityTest[1]
If you just want to extract the username/password from security header
UsernameToken which you can use later, just take a look at how to do
it in JbiJAASInterceptor[2], this interceptor is which you should
follow to get username/password from WSUsernameTokenPrincipal
[1]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/ws/security/CxfBCSecurityTest.java
[2]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
Freeman
On 2009-12-2, at 下午8:35, Philip wrote:
Hello everybody,
we are two students from germany and pretty new to servicemix cxf.
Before we
add some servicemix-errors to the mailing list, it would be great to
know if
we are on the right track.
Our scenario:
We want to send a soap message (with security header tags like
<username>
etc.) to the cxf-bc.
At the cxf-bc we like to read out the header and save the attributes
to work
with them later. We thought about adding a InInterceptor, which does
the
job.
Is that possible and are we on the right way? Or does an easier way
exist?
Is it better to add the InInterceptor to the cxf-bc or cxf-se?
Thanks for your help!
Best regards
Philip and Nicolas
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com