Encrypting the POJOWebService

In Chapter 10, Developing Applications with JBoss Web Services, we have coded two simple Web Services. The first one, POJO Web Service, was in charge of simply calculating a math power of an argument.

In this section, we will encrypt the SOAP communication between the client and the server. A prerequisite to this example is that you should have successfully created client and server certificates and also the jboss-wsse-server.xml and jboss-wsse-client.xml configuration files.

Securing the Web Service

Let's first start with the server. You just have to state that the Web Service will use a handler that is able to encrypt the content of the message. (For additional details about Web Services handlers, please refer to ...

Get JBoss AS 5 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.