Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The ws-policy specification talks about a concept called Vocabulary. In section 3.2 it can be seen how the vocabulary is to be used in policy processing.
"An assertion whose type is part of the policy's vocabulary but is not included in an alternative is explicitly prohibited by the alternative."
To calculate the vocabulary of a policy requires building a list of every assertions QName and the removing of duplicates. It is likely this will be a function that is required by axis2. I would imagine that it would be useful to have a method on Policy to retrieve the vocabulary of the policy. If others agrees with me then please find attached here a test case and a patch to add this functionality.