use of com.arjuna.webservices.util.InvalidEnumerationException in project narayana by jbosstm.
the class SoapFault11 method create.
public static SoapFault11 create(SOAPFaultException sfe) {
try {
SOAPFault cause = sfe.getFault();
QName faultCode = cause.getFaultCodeAsQName();
String reason = cause.getFaultString();
SoapFaultType soapFaultType = SoapFaultType.toState(reason);
Detail detail = cause.getDetail();
return new SoapFault11(soapFaultType, faultCode, null, detail);
} catch (InvalidEnumerationException e) {
return new SoapFault11(e);
}
}
Aggregations