Dear Freeman,
Thanks for replying.
I have gone through the links.
I know Fuse supports WS-Policy but I want to apply WS-Policy at runtime on webservices as mentioned in 3rd option of the following link.
Does FuseESB supports any such kind of configuration. Many thanks in advance.
Any sample implementation or guidance for me how to implement.
Link: http://fusesource.com/docs/mirrors/cxf/index/ws--support/ws-policy/how-to-define-policies.html
3rd Option from the link.
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:
1.Get policy from external location and build it for current message.
2.Parse WS-Policy XML using Neethi library.
3.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.