Chapter 9.  WS Policy Framework

The calculation of the effective policy for each message as well as verification that the alternatives for that policy are supported happens in interceptors.

9.1.  Using The Policies Feature

The policies feature supports the following attributes:
Indicates an exception should be thrown when encountering assertions for which no AssertionBuilders are registered (default:true). When set to false, a warning will be logged instead.
The namespace of the WS-Policy Framework specification (default:
The element also supports the following child elements:
A bean or reference to a bean that implements the interface. The default selector chooses the minimal alternative; that is, the one with the least number of assertions.
In addition, the element can have any number of Policy or PolicyReference child elements. This has the same effect as if the Policy or PolicyReference elements were attached to the wsdl:port element of the WSDL contract of the client or server endpoint to which the feature is applied (or to all endpoints if the feature is applied to the bus).
For example, to apply this feature to the bus and prevent exceptions being thrown when encountering unknown assertions:
<beans xmlns=""
            <p:policies ignoreUnknownAssertions="true"/>