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
import. I leave the service development to your capable hands and only focus on the security portion of the story.
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 ...