I am trying to use @Policy to add security information to the WSDL, but so far 
it does not seem to have any effect.

Here is what I have specified:

        @Policies({
                //@Policy(uri="resources/wsPolicy.xml", includeInWSDL=true)
                @Policy(uri="wsPolicy.xml", includeInWSDL=true)
        })

I have tried specifying this on individual methods as well as on the service 
interface. I also tried enabling the policy framework (<p:engine enabled="true" 
ignoreUnknownAssertions="true"/>).

I tried placing the referenced wsPolicy.xml both in the resources folder 
(src/main/resources), and also in the site root.

I am not seeing any errors or warnings about not being able to find the policy 
file or about it being invalid (although it may not be valid at this point)... 
As far as I can make out, the annotation is being ignored.

I am currently using CXF 2.3.1, Spring 3.0.5, and Maven.

Can anyone give me any further guidance on what I need to do?


Thanks,
Jeremy Robertson



 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.


Reply via email to