code: private void parseSoap11Fault(Document soapMessage, PrintWriter logger)
              throws Exception {
          Element envelope = soapMessage.getDocumentElement();
          Element element = DomUtils.getElementByTagName(envelope, "faultcode");
          if (element == null) {
              element = DomUtils.getElementByTagNameNS(envelope,
                      SOAP_11_NAMESPACE, "faultcode");
          }
          String faultcode = element.getTextContent();
  
          element = DomUtils.getElementByTagName(envelope, "faultstring");
          if (element == null) {
              element = DomUtils.getElementByTagNameNS(envelope,
                      SOAP_11_NAMESPACE, "faultstring");
          }
  
          String faultstring = element.getTextContent();
  
          String msg = "SOAP Fault received - [code:" + faultcode
                  + "][fault string:" + faultstring + "]";
          logger.println(msg);
      }
docs: A method to parse a SOAP 1.1 fault message.
  
  @param soapMessage
  the SOAP 1.1 fault message to parse
  
  @param logger
  the PrintWriter to log all results to
  
  @return void
  
  @author Simone Gianfranceschi