body = document;
this.characterEncoding = characterEncoding;
}
public void writeRequestBody(OutputStream os) throws IOException {
IDocumentMarshaler marshaler = new DocumentMarshaler();
OutputStreamWriter writer = new OutputStreamWriter(os, characterEncoding);
marshaler.print(body, writer, "utf-8"); //$NON-NLS-1$
}