O'Reilly logo

JBoss AS 5 Development by Francesco Marchioni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required