You can add security to a web service by attaching policy
sets to the service. Each attachment specifies an endpoint, a policy
set, and a binding.
Before you begin
You have created a web service EAR (application) that is in
your workspace.
About this task
To create a policy set attachment for your web service:
Procedure
- In the Services view, right-click a service object and
select Manage Policy Set Attachment.
- For each attachment that you want to create, click Add and
use the Endpoint Definition 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.
- Optional: To configure the binding for a policy type on
the server, use the administrative console of the server.
- Click Finish to complete the wizard.
Results
A
policyAttachments.xml is created in
the
META-INF folder of your web service application
(EAR).