Hi,
My comment inline
On 2011-10-14, at 下午6:29, Kent Närling wrote:
Hi!
I found this documentation how to add WS-security in a client using
CXF:
http://cxf.apache.org/docs/ws-security.html
However I tried hard to find out what maven dependencies I need to
get this
working, but is hard to figure out...
I added this:
<dependency>
<groupId>wss4j</groupId>
<artifactId>wss4j</artifactId>
<version>1.5.1</version>
</dependency>
Basically add
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-security</artifactId>
could transitively pull in all necessary dependency.
But this is non-CXF specific stuff and the interceptors have the
package
path org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor so I
assume this
is in some CXF package?
Also, the above documentation is a bit vague on how to specify the
password
from the client if you dont use Spring?
Is it possible to send the password programmatically?
Take a look at samples/ws_security/ut example shipped with kit, it
demonstrate how to set UsernameToken with java code.
Freeman
Best regards,
Kent
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com