Although it's WSDL-first, link #14 (WS-SecPol method) might help you
determine the Policy statements needed:
http://www.jroller.com/gmazza/entry/blog_article_index
Since you're doing Java-first you'll need to wire in the WS-Policy
statements as described elsewhere (@Policy annotation).
Glen
On 02/27/2012 01:53 PM, martin wrote:
Thank you for your reply.
I have been trying to find an example of how to write the policy.xml file.
Do you know of any example i can use?
Do I have to include namespaces in the policy file?
Do I have to include something in other files beside the policy exceptions?
Thank you for your time
You're wsdl doesn't contain any security policy fragments or anything to
define the security requirements. There are two options:
1) Use the WSS4JInInterceptor documented at:
http://cxf.apache.org/docs/ws-security.html
2) Create a WS-Policy document that describes the policy you want to
enforce
and attach that to the service via something like the @Policy annotation or
similar.
Dan
--
View this message in context:
http://cxf.547215.n5.nabble.com/WS-Security-policy-not-being-enabled-in-CXF-tp5512888p5519791.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza