interop writeDocument to stream, support for prov-vservice