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
You have created a web service client that is in your workspace.
About this task
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:
Procedure
- 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.
Results
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: