O'Reilly logo

GlassFish Security by Masoud Kalali

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

Developing secure Web Services

In this section we will develop a simple Web service, which will echo an incoming string to demonstrate how we can use OpenSSO to enforce a different level of security on the SOAP messages level.

We can develop the sample Web service using any IDE or using the JAX-WS development tools like wsgen and import. I leave the service development to your capable hands and only focus on the security portion of the story.

Tip

The best IDE that I can suggest is NetBeans IDE 6.8 or a newer version. NetBeans IDE is well integrated with GlassFish and provides us with superb support for Java EE software development.

The source code for the Echo class right after developing looks like the following snippet:

@WebService() public class ...

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