public void fault(String faultXml) throws Exception {
  LOG.trace("writeFault({})",faultXml);
  if (inAttachmentPart) {
    endAttachments();
  }
  mpEncoder.startPart(TEXT_XML_UTF8);
  mpEncoder.write(faultXml.getBytes(StandardCharsets.UTF_8));
}

public void fault ( String faultXml ) throws Exception { LOG . trace ( "writeFault({})" , faultXml ) ; if ( inAttachmentPart ) { endAttachments ( ) ; } mpEncoder . startPart ( TEXT_XML_UTF8 ) ; mpEncoder . write ( faultXml . getBytes ( StandardCharsets . UTF_8 ) ) ; }
write the soap fault xml string to the output stream .
