3.2.5.1.5 Serializing the Reply

The completion of a Remote Method can yield a Return Value, Output Arguments, or Exception. The values of the Call Context that were part of the request message MUST be returned back as part of the reply unless the Remote Method implementation removed the values explicitly. These values MUST be serialized into the message content. The serialization format MUST be the same as that of the request. If there is any error during serialization then a SerializationException instance MUST be constructed as specified in Constructing SerializationException (section 3.2.5.1.7.1) and the Exception MUST be returned to the client.