Chapter 11. WSS4J security on JBoss
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.
11.1. Creating the web service endpoint
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
wsprovide
JBoss commandline tool which generates the service contract. - Run the
wsconsume
JBoss commandline tool to get the client artifacts from the service contract (top-down approach). - Write your client implementation.