Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop web services - Addressing (WS-Addressing) > Enable Web Services Addressing support for JAX-WS applications > Enable Web Services Addressing support for JAX-WS applications using policy sets


Attach a policy set to a service artifact

Attach a policy set to a service artifact, such as an application, service, endpoint or operation, to define the quality of services that are supported. Policy sets can define the policies for WS-Addressing, WS-Security, WS-ReliableMessaging, WS-Transaction, HTTP transport, JMS transport, and SSL transport. Before you can start this task, deploy an application containing web services. Also, if none of the default policy sets contain the necessary policy definitions, then create a custom policy set with the necessary definitions.

Develop a web service that contains each of the necessary artifacts, and deploy your web services application into your application server instance. Now you can attach policy sets to your service artifacts, such as an application, service, or endpoint.

To attach a policy set to a service artifact, perform the following steps:


Procedure

  1. Open the admin console.

  2. To attach a policy set to a service provider, click Applications > Enterprise applications > application_name > Service provider policy sets and bindings.

    To attach a policy set to a service client, click Applications > Enterprise applications > application_name > Service client.policy sets and bindings.

  3. Select the check box for the service artifact.

  4. Select Attach to display a list of available policy sets to attach. Select a policy set from the list.

  5. Click Save, to save changes to the master configuration.
  6. [Optional] To see what attachments are defined for a given policy set, select Services > Policy sets > Application policy sets > policy_set_name > Attached applications.


Results

When you finish these steps, a policy set is attached to the service artifact.


Example

If we have the application, app1 and you want to attach the policy set, WSSecurity default, then perform the following steps:

  1. Locate the app1 application in the Applications > Enterprise applications collection.

  2. Click the app1 application.

  3. Click the Service provider policy sets and bindings link or the Service client.policy sets and bindings link.

  4. Select the check box for the service artifact where the policy set is to be attached.

  5. Click Attach. Select WSSecurity default policy set.

  6. Click Save, to save changes to the master configuration.


What to do next

We can create custom bindings for policy set attachments. Read about creating custom bindings for policy set attachments.

We can configure the service client or service provider to share their policies. Read about using WS-Policy to exchange policies in a standard format.
Create application specific bindings for policy set attachment
Reassigning bindings to policy sets attachments
Modify default bindings at the server or cell level for policy sets
Use WS-Policy to exchange policies in a standard format
Define and managing policy set bindings

+

Search Tips   |   Advanced Search