Hi,

Basically org.apache.neethi.PolicyBuilder does this job:  
http://ws.apache.org/neethi/apidocs/org/apache/neethi/PolicyBuilder.html.

Anyway, to create Neethi policy from XML in CXF, you can reuse CXF 
PolicyBuilder:
org.apache.cxf.ws.policy.PolicyBuilder builder = message.getExchange().getBus()
                                
.getExtension(org.apache.cxf.ws.policy.PolicyBuilder.class);
Policy genericPolicy = builder.getPolicy(xmlPolicyElement);

Cheers,
Andrei.

> -----Original Message-----
> From: lv [mailto:[email protected]]
> Sent: Mittwoch, 27. Februar 2013 09:43
> To: [email protected]
> Subject: How to use Neethi to build policy Dynamically
> 
> 
> I need to build web service policy dynamically. Where is the example of
> neethi ?
> 

Reply via email to