My Oracle Support Banner

Unable to use more than one security policy inside @Policies annotation with Webservice (Doc ID 1053523.1)

Last updated on APRIL 30, 2018

Applies to:

Oracle Weblogic Server - Version: 10.3 and later   [Release: and later ]
Information in this document applies to any platform.


When developing Webservice from Java class (using WLW or ANT task) and annotating it with @Policies annotation, the policies specified are not reflected in the generated WSDL. On the other hand, when @Policy is used, it works fine and WSDL contains the proper policy definition attached to WSDL file.
1.)Policy annotation is used for single policy file
   @Policy (uri="policy:myPolicy.xml",

2.)Policies annotation is used for more than one policy file
   @Policies ({

Unable to use more than one security policy.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.