| By Michael Galpin | Article Rating: |
|
| May 28, 2008 03:30 PM EDT | Reads: |
5,680 |
Go back to your list of service, but this time click on the bid link under services. This should bring up the interface shown in Figure 7. There’s a lot you can do here, but for now let’s click on the Manage Module Engagements link. That should bring up the interface shown in Figure 8.
The various modules in the Module combo box represent Axis2 modules that implement various WS-*. Let’s say we’re interested in WS-Security. To enable this, we simply pick rampart from the list, as shown in Figure 9. Click the Engage button, and just like that WSAS will activate its WS-Security module for your service, as shown in Figure 10. Similarly, you can pick sandesha from the Module list and WSAS will enable WS-Reliable Messaging for your service. Let’s take a look at some of the security options we have available to us.
Security Configuration
Let’s go back to our Service listing (Figure 7) and this
time click the Security Configuration link. This will bring up the interface
shown in Figure 11. What is this list you see here? This list represents 11
different pre-set security configurations included with WSAS. These 11
configurations represent the most common scenarios for securing a Web Service.
Whatever your security requirements are, it’s probably covered by one of them.
Enabling any of them is trivial, just pick its radio button and continue. For
example, let’s say we pick the “Sign and encrypt - TripleDES/RSA15 – DK” option then we’ll bring up the interface shown in Figure 12.
Notice that WSAS already has both a trusted certificate store and a keystore location provided to support encryption. The Management Console has a Keystore tab (on the left) that you can use to manage certificates and providers. Once you apply the security configuration, you can go back to the list of services and click on the Policy, as shown in Figure 13.
This will bring up the Policy, shown in Listing 3. The Policy is an extensible way to configure any/all of the WS-* technologies you have enabled for your service. Where did this Policy come from? It was generated by WSAS for you when you selected the Security Configuration. You can still manually edit this file either to tweak security or to configure your WS-Reliable Messaging policy.
Summary
In this article we’ve started with an Axis service, and very
easily redeployed it to WSAS. All we needed was its WSDD deployment descriptor
and a JAR of all its classes. We saw how WSAS made sure to maintain backwards
compatibility with the original service, even though the original service used
the deprecated RPC-encoding format. Once we brought our service into WSAS, we
could easily enable WS-Security and WS-Reliable Messaging. Finally, WSAS made
it especially easy to pick a powerful Security Configuration, automatically
managing the Policy for us.
Resources
- Take a look at the WS-RM specification from the developerWorks library.
-
Learn about the benefits of WS-Security in the
developerWorks article Implementing WS-Security.
-
WSAS enables WS-Addressing automatically. Learn how
important this is in the developerWorks article The hidden impact of
WS-Addressing on SOAP.
-
Read about the Axis2 module system in the developerWorks
article Web Services and Axis2 architecture.
-
Explore the benefits of using a StAX processor in the
developerWorks article StAX’ing up XML, Part 1: An introduction to Streaming API for XML.
- Keystores are integral part to your security. Learn all about them in the developerWorks article Unshackling key management in Java security.
- You’re going to want to download WSO2 WSAS.
-
Read about the latest features in WSO2 WSAS 2.0.
-
Learn from and interact with the WSO2 community on the WSAS
Wiki.
-
Learn about exposing your services as Web Services easily
with Axis2.
- Learn how Axis2 can enable your SOA designs in the developerWorks article SOA with Axis2.
Published May 28, 2008 Reads 5,680
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Michael Galpin
Michael Galpin is an architect at eBay, specializing in presentation technologies. He has been hacking on the web since the 90s, is a frequent writer for IBM developerWorks, and has a degree in mathematics from Caltech.
- Kindle 2 vs Nook
- Why IBM’s Server Chief Got Busted
- Is Cloud Computing Like Teenage Sex?
- Industry Experts Discuss the State of Cloud Computing
- Performance Tuning Essentials for Java
- Confessions of a Ulitzer Addict
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- It's the Java vs. C++ Shootout Revisited!
- Cloud Computing Can Revitalize Your Career as Software Developer
- IBM Could "Reinvent" Java: Mills
- Oracle & Cloud Computing: Exclusive Q&A with SVP Richard Sarwal
- A Brief History of Cloud Computing
- Kindle 2 vs Nook
- Cloud CEOs, CTOs & SVPs to Speak at 4th International Cloud Computing Expo
- Why IBM’s Server Chief Got Busted
- Is Cloud Computing Like Teenage Sex?
- Industry Experts Discuss the State of Cloud Computing
- Performance Tuning Essentials for Java
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing Expo: Exclusive Q&A with Yahoo! SVP Cloud Computing
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Confessions of a Ulitzer Addict
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- The i-Technology Right Stuff
- JavaServer Faces (JSF) vs Struts
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- What's New in Eclipse?
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- i-Technology Predictions for 2007: Where's It All Headed?





































