Yang, Gang CTR US USA wrote:
Classification: UNCLASSIFIED
Caveats: NONE
(cut)
Hi, Simon,
I did try what you described here and it worked - afterInvoke is called
with respnseMC that contains the fault SOAP message. So it's doable.
Here's the code snippet.
try {
AccessController.doPrivileged(new
PrivilegedExceptionAction<Object>() {
public Object run() throws AxisFault {
operationClient.execute(true);
return null;
}
});
} catch (PrivilegedActionException e) {
MessageContext responseMC =
operationClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
for ( PolicyHandler policyHandler : policyHandlerList )
{
policyHandler.afterInvoke(msg, responseMC,
operationClient);
}
operationClient.complete(requestMC);
throw (AxisFault)e.getException();
}
Thanks,
Gang
Classification: UNCLASSIFIED
Caveats: NONE
Hi Gang,
I'm pleased to hear that this code works. Please create a JIRA for this
problem and attach this code snippet as a patch. Thanks.
Simon