Creating a policy set attachment on the client side
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, configure a binding for some policy types.
Prerequisite: You have created a Web service client that is in your workspace.
For a given Web service and a client of that service, the policy sets and bindings configuration must match for the service to function correctly. Use the information that you obtained from your Web service provider when you specify policy sets and most bindings configuration on the client side.
To create a policy set attachment for your Web service client:
- In the Services view, select your Web service client object, right-click and select
Manage Policy Set Attachment.
- For each attachment that you want to create, click
Add and use the Configure Policy Set and Binding window to attach a policy set to an endpoint and specify a binding. Each attachment that you create will be listed in the
Application table.
- To configure the bindings for an attachment:
- Select the attachment in the
Application table.
- In the
Binding Configurations table, for each binding that has a status of "Binding not configured", select the binding, click
Configure and use the binding configuration window to configure a binding. The window that opens depends on the type of binding that you select.
- When you have configured all of the bindings that require configuration, each binding in the
Binding Configurations table will have a status of "Binding Configured" or "N/A" (not applicable). Click Finish to complete the wizard.
A
clientPolicyAttachments.xml is created in the
META-INF folder of your Web service application (EAR).
For more information about creating a policy set attachment, see the related tasks:
- Attaching a policy set to an endpoint
When creating or modifying a policy set attachment for a Web service or client, you can associate a policy set with an endpoint. For a client, you can also specify a binding.- Configuring bindings for policy types
After attaching a policy set to a Web services endpoint, configure bindings for several policy types, in order to customize the types for a particular environment and platform. The bindings configuration of a Web service on the client side must match the bindings configuration of the Web service on the server side. For the client, use information from the Web service provider to match the values that are specified on the server side.
Related tasks
Modifying policy set attachments