private Document parseSoapFault ( Document soapMessage , PrintWriter logger ) throws Exception { String namespace = soapMessage . getDocumentElement ( ) . getNamespaceURI ( ) ; if ( namespace . equals ( SOAP_12_NAMESPACE ) ) { parseSoap12Fault ( soapMessage , logger ) ; } else /* if (namespace.equals(SOAP_11_NAMESPACE)) */ { parseSoap11Fault ( soapMessage , logger ) ; } return soapMessage ; }
A method to parse a SOAP fault . It checks the namespace and invoke the correct SOAP 1 . 1 or 1 . 2 Fault parser .