Versions Compared

Key

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

...

CXF's WS-Policy Framework is described in more detail in the WS-Policy Framework User's Guide . Like many other features in CXF, the implementation is interceptor based, and thus the computation of the effective policy for a specific message (as well as the verification that one of the alternatives of that effective policy is supported happen ) happens in interceptors. As there are quite a number of interceptors involved, these are not normally on the interceptor chains, i.e. the WS-Policy Framework is disabled. To enable it, use any of the following options:

...

For example, to apply this feature to a the bus and prevent exceptions being thrown when encountering unknown assertions:

...

The policy engine is the central instance of the WS-Policy framework implementation. You can enable and configure it directly, using the <engine> element in the http://cxf.apache.org/policy namespace. This element supports the same attributes and child elements as the <policies< element> <policies> element above, except:

  • It supports the additional attribute 'enabled' of type boolean (default: false) to determine if the engine, and hence the policy framework, is enabled.
  • It ignores Policy and PolicyReference child elements.

Following The following configuration achieves the same as in the example above:

...