SOAPConstants soapConstants = msgContext.getSOAPConstants();
OperationDesc op = msgContext.getOperation();
Class faultClass = null;
QName faultXmlType = null;
if (op != null) {
FaultDesc faultDesc = null;
// allow fault type to be denoted in xsi:type
faultXmlType = context.getTypeFromAttributes(namespace,
name,
attributes);
if (faultXmlType != null) {
faultDesc = op.getFaultByXmlType(faultXmlType);
}
// If we didn't get type information, look up QName of fault
if (faultDesc == null) {
faultDesc = op.getFaultByQName(qn);
if (faultDesc != null) {
faultXmlType = faultDesc.getXmlType();
}
}
// Set the class if we found a description
if (faultDesc != null) {
try {
faultClass = ClassUtils.forName(faultDesc.getClassName());
} catch (ClassNotFoundException e) {
// Just create an AxisFault, no custom exception
}
}
} else {