Before you start
Part 1 of this two-part tutorial series showed you how to use wizards in the WebSphere Application Server Toolkit (hereafter referred to as Application Server Toolkit) to create top-down Web services, generate the corresponding Web services client, and deploy the Web services application to WebSphere Application Server (hereafter referred to as Application Server). Part 2 provides step-by-step instructions about using the wizards in Application Server Toolkit to configure Web services security for a Java™ API for an XML-based RPC (JAX-RPC) Web service and for a JAX-RPC Web service client.
You should have a basic knowledge of Web services, Web services security, and Application Server V6.1. Completion of Part 1 is highly recommended.
To work through this tutorial, you need a Microsoft® Windows® machine with a minimum of 1GB of RAM, with the following software installed:
- WebSphere Application Server Toolkit V6.1
- WebSphere Application Server Base V6.1
You can download the sample application client and server .ear files for this tutorial from the Download section near the end of this tutorial. To test the sample application, follow these steps:
- Enable Security in WebSphere Application Server by navigating to Security > Secure administration, applications, and infrastructure in the WebSphere admin console.
- Install WServiceApp_src.ear on Application Server.
- Select the Show me all installation options and parameters radio button on the first installation page.
- Keep all default values during the installation, except for step 7 (Map security roles to users or groups). In this panel, map a user to myRole by selecting myRole, clicking the Look up users button, then clicking Search and selecting a user from the list. This user has to exist in the user registry.
- Save all the changes, and restart the Application Server.
- Create a directory to run the client (c:\myClient), and copy WSClient_src.ear to this directory.
- Go to the directory that you want to run the client from and issue the command
WAS_HOME\bin\launchClient WSClient_src.ear -url=http://host:port /MyWService/services/AnnuityService -doauto.Notes: Change WAS_HOME to the location of the installed Application Server V6.1, and change host:port so that host is your machine host name, and port is the WC_defaulthost port, which can be found in the Application Server profile SystemOut.log, such as TCP Channel TCP_2 is listening on host * (IPv4) port 9080. (For example, \WebSphere\AppServer\bin\launchClient WSClient_src.ear -url=http:// localhost:9080/MyWService/services/AnnuityService -doauto.)
- You'll see a login prompt. Log in with the user and password that you used to map to myRole in step 4, above.

