When creating or modifying a policy set attachment for
a web service or client, you can associate a policy set with an endpoint.
For a client, you can also specify a binding.
Before you begin
You must be in the Configure Policy Set and Binding window
of a policy set attachment wizard.
About this task
You can use this window more than once to associate different
policy sets with different levels of a web service. A web service
has three levels of generality: service, endpoint, and operation.
The service level is the most general, and the operation level is
the most specific. The most specific attachment that applies will
be used for a given invocation of a web service. For example, if you
create attachments to both a web service and an operation in that
service, invocations of the operation will use the attachment for
the operation, but invocations of other operations will use the attachment
for the service.
To associate a policy set with an endpoint
and specify a binding:
Procedure
- From the Service Name list, select
the web service that you want to secure.
- Optional: If you want finer-grained control, from the Endpoint list,
select the name of the endpoint that you want to secure. An endpoint
is also known as a port type.
- Optional: If you want even finer-grained control, from
the Operation list, select the name of the
operation that you want to secure.
- From the Policy Set list, select
the policy set that you want to attach to the web service, endpoint,
or operation that you have selected in the Application section.
The policy set that you attach to a web service on the client side
must match the policy set that is attached to the web service on the
server side. For the client, use the information from the web service
provider. If you set a global or project level preference for a default
policy set, this policy set will be pre-selected for you.
- To specify a binding for a client-side attachment, in the Binding list,
select or enter a name for the binding that you want to associate
with your attachment. Because the information that a binding contains
is unique to a given environment or platform, you can use each binding
with only one attachment. You do not need to specify a binding for
a server-side attachment.
- Click OK.
Results
Your attachment is shown in the
Application table
of the policy set attachment wizard.