Serializes an object or graph of objects with the specified root to the given System.IO.Stream in the SOAP Remote Procedure Call (RPC) format.
Headers are used only for specific remoting applications.
TimeSpan objects are serialized according to the ISO 8601: 1998 section 5.5.3.2.1 "Alternative" standard.