Here is a brief chapter on how to use Chapter 10, WS-Security on JBossWS-CXF. Here you'll find some explanations on how to create a simple application and what you need to do to leverage WSS4J security on JBoss.
First of all you need to create the web service endpoint or client using JAX-WS. This can be achieved in many ways. For instance you might want to:
- Write your endpoint implementation, then run the
wsprovideJBoss commandline tool which generates the service contract. - Run the
wsconsumeJBoss commandline tool to get the client artifacts from the service contract (top-down approach). - Write your client implementation.