// the output stream because the http request requires the length.
_out.setOutput(_buffer);
_writer.setOutput(_out);
final XMLStreamWriter xmlOut = _writer.getStreamWriter();
xmlOut.setPrefix(csq(ENVELOPE_PREFIX), csq(ENVELOPE_URI));
xmlOut.writeStartElement(csq(ENVELOPE_URI), csq("Envelope"));
xmlOut.writeNamespace(csq(ENVELOPE_PREFIX), csq(ENVELOPE_URI));
xmlOut.writeStartElement(csq(ENVELOPE_URI), csq("Header"));
xmlOut.writeEndElement();
xmlOut.writeStartElement(csq(ENVELOPE_URI), csq("Body"));
writeRequest(_writer);