docs: function encodeSoapFault(doc) {
      // Envelope
      doc.startElement('soap:Envelope');
      doc.writeAttribute('xmlns:soap', 'http://schemas.xmlsoap.org/soap/envelope/');
      // Body
      doc.startElement('soap:Body');
      doc.writeAttribute('soap:encodingStyle', 'http://schemas.xmlsoap.org/soap/encoding/');
      // Fault
      doc.startElement('soap:Fault');
  
      // faultcode & faultstring
      doc.writeElement('faultcode', 'soap:Server');
      doc.writeElement('faultstring', 'INTERNAL_ERROR');
  
      doc.endElement(); // fault
      doc.endElement(); // body
      doc.endElement(); // envelope
  }