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
- SSL transport
Before we can start this task, deploy an application containing Web services.
If none of the default policy sets contain the necessary policy definitions, then create a custom policy set with the necessary definitions.
To attach a policy set to a service artifact...
- Open the admin console.
- To attach a policy set to a service provider, click...
Applications | Enterprise applications | myapp | Service provider policy sets and bindings
To attach a policy set to a service client, click...
Applications | Enterprise applications | myapp | Service client.policy sets and bindings
- Select the check box for the service artifact.
- Select Attach to display a list of available policy sets to attach. Select a policy set from the list.
- Click Save, to save the changes to the master configuration.
- [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:
- Locate the app1 application in...
Applications | Enterprise applications- Click the app1 application.
- Click the Service provider policy sets and bindings link or the Service client.policy sets and bindings link.
- Select the check box for the service artifact where the policy set is to be attached.
- Click Attach. Select WSSecurity default policy set.
- Click Save, to save the changes to the master configuration.
Next steps
We can create custom bindings for policy set attachments.
We can configure the service client or service provider to share their policies.
Related tasks
Create application specific bindings for policy set attachment
Reassigning bindings to policy sets
Modify default bindings at the server or cell level for policy sets
Use WS-Policy to exchange policies in a standard format
Set policy set bindings