ComponentInvocation inv = null;
try {
Switch theSwitch = Switch.getSwitch();
InvocationManager invManager = theSwitch.getInvocationManager();
inv = invManager.getCurrentInvocation();
Method method = wsUtil.getInvMethod(inv.getWebServiceTie(),
context);
// Result can be null for some error cases. This will be
// handled by jaxrpc runtime so we don't treat it as an exception.
if( method != null ) {
inv.setWebServiceMethod(method);
} else {
inv.setWebServiceMethod(null);
}
} catch(Exception e) {
logger.log(Level.WARNING, "preWebHandlerError", e);
wsUtil.throwSOAPFaultException(e.getMessage(), context);
}
return true;