Unable to use more than one security policy inside @Policies annotation with Webservice
(Doc ID 1053523.1)
Last updated on OCTOBER 30, 2020
Applies to:
Oracle WebLogic Server - Version 10.3 and laterInformation in this document applies to any platform.
Symptoms
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
Eg:
@Policy (uri="policy:myPolicy.xml",
attachToWsdl=true,
direction=Policy.Direction.outbound)
2.)Policies annotation is used for more than one policy file
Eg:
@Policies ({
@Policy(uri="policy:firstPolicy.xml"),
@Policy(uri="policy:secondPolicy.xml")
})
Unable to use more than one security policy.
Cause
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
Symptoms |
Cause |
Solution |
References |