Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In general, WS-Policy is used for configuring WS-Security, WS-Reliable Messaging, caching, and throttling. WS-Policy attachment specification defines a set of policy subjects that can be used when the user wants to attach or apply security policies. WSO2 products have the capability of Axis2 to apply WS-Policy to services at different levels such as service, service operation, service operation message, binding, binding operation, binding operation message, etc.

Defining policies at bindings

Policies can be applied at the binding hierarchy in three different policy subjects such as:

...

The configuration is similar for the Binding Message level for the out message. The identifier attribute of the <policy-subject/> element in <wsp:AppliesTo> changes to binding:soap11/operation:echo/out. The XML snippet is as follows:

...

Info

Infor: For more information on WS-Policy, see

WSWS-Policy editor  

You can use either the graphical or text WS-Policy editor to edit your policy documents. Given a service or a module, it generates a graphical tree view (the Policy tree) representing the document along with the plain text (raw policy) representation. The default view presented is the source view or the raw policy. You will be editing the merged WS-Policy, which includes all the WS-Policy components attached to the particular level selected.

...

The WS-Policy Editor also contains a design view, which is a graphical representation of the WS-Policy in being edited. For example,Image Removed

Here are few tips to use the policy editor:

...