Search in sources :

Example 1 with InvalidEnumerationException

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);
    }
}
Also used : SoapFaultType(com.arjuna.webservices.SoapFaultType) QName(javax.xml.namespace.QName) SOAPFault(javax.xml.soap.SOAPFault) InvalidEnumerationException(com.arjuna.webservices.util.InvalidEnumerationException) Detail(javax.xml.soap.Detail)

Aggregations

SoapFaultType (com.arjuna.webservices.SoapFaultType)1 InvalidEnumerationException (com.arjuna.webservices.util.InvalidEnumerationException)1 QName (javax.xml.namespace.QName)1 Detail (javax.xml.soap.Detail)1 SOAPFault (javax.xml.soap.SOAPFault)1