Lesson 5: Secure the web service client with the WS-I RSP policy set
You can add security to a web service client by attaching policy sets to the client. Each attachment specifies an endpoint, a policy set, and a binding. Because each configuration is specific to an application and a user, you must configure a binding for some policy types.
Before you begin
Before you begin, you must have completed the steps in Lesson 4: Attach the RSP policy set to the web service.
About this task
Procedure
Results
clientPolicyAttachments.xml is created in the META-INF folder of the jwsAddressBookEAR, as well as the client side bindings.

Testing the secured web service using the TestClient.jsp
About this task
Procedure
- Select the SaveAddress method, enter information in each of the fields and click Invoke.
- Select the Find Address method, enter the name used in the previous step and click Invoke. The web service should function in the exact way that it did before it was secured with the information entered in step 1 being displayed in the Results pane.
Lesson Checkpoint
Finish your tutorial by reviewing the materials in the Summary