Creating a policy set attachment on the server side

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.

Prerequisite: You have created a Web service EAR (application) that is in your workspace.

To create a policy set attachment for your Web service:

  1. In the Services view, right-click a service object and select

    Manage Policy Set Attachment.

  2. 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.

  3. Optional: To configure the binding for a policy type on the server, use the administrative console of the server.

  4. Click Finish to complete the wizard.

A

policyAttachments.xml is created in the

META-INF folder of your Web service application (EAR).