Hi,
When we get the effective policy from a message, it tries to calculate
the effective policy as given below.
AxisBindingMessage bindingMessage =
(AxisBindingMessage)
getProperty(Constants.AXIS_BINDING_MESSAGE);
if (bindingMessage != null) {
return bindingMessage.getEffectivePolicy();
} else {
if (axisMessage != null) {
return axisMessage.getEffectivePolicy();
} else {
return null;
}
}
But in Faults, axisMessage is not set in the MessageContext. Because of
this, we didn't get the correct policies from Message Context. This causes
problems in Rampart when trying to secure fault messages. Is there a way to
retrieve the effective policy from the MessageContext when we are
sending/receiving faults ?
thanks,
nandana