what's these policy used for?


On Fri, Aug 24, 2012 at 6:26 PM, techlearner123
<[email protected]>wrote:

> My question is in reference to link:
> http://cxf.apache.org/docs/how-to-define-policies.html
>
> In reference to Apache CXF documention for WS-Policy following point is
> mentioned. Can someone provide more information on this.
> Has somebody used this functionality. Any help will be appreciated.
>
> Basically I am trying to apply some run time policies on webservices.
>
> Dynamically via message property
> Sometimes policies cannot be configured statically, because they are
> obtained or calculated dynamically for concrete message (for example using
> Policy Server or Service Registry). For such cases CXF provide a
> possibility
> to load policy dynamically and set it into the message context property. It
> can be done for example in custom interceptor that fulfils the following:
> Get policy from external location and build it for current message.
> Parse WS-Policy XML using Neethi library.
> Store result Policy object into PolicyConstants.POLICY_OVERRIDE message
> content property.
> Important is that this custom policy interceptor is called before CXF
> PolicyInInterceptor or PolicyOutInterceptor. Than CXF will automatically
> recognize Policy stored into this property and use it with highest
> priority.
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Dynamicall-y-define-WS-Policy-in-CXF-tp5713085.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to