procedure Execute(const DataMsg: String; Response: TStream); overload; deprecated; procedure Execute(const Request: TStream; Response: TStream); overload; function Execute(const Request: TStream): TStream; overload;
virtual void __fastcall Execute _DEPRECATED_ATTRIBUTE0 (const System::UnicodeString DataMsg, System::Classes::TStream* Response) = 0 /* overload */; virtual void __fastcall Execute(System::Classes::TStream* const Request, System::Classes::TStream* Response) = 0 /* overload */; virtual System::Classes::TStream* __fastcall Execute(System::Classes::TStream* const Request) = 0 /* overload */;
Executes an encoded method call and returns the encoded results in a stream.
Execute interprets an encoded method call, executes it, and returns the encoded results using a stream. Typically, this method works in conjunction with an object that implements the IOPConvert interface, which marshals a method call into the DataMsg or Request string and unmarshals the return value.
DataMsg is an encoded method call. It represents the results of marshaling a method call on an invokable interface into a transportable string. The use of this syntax is not recommended.
Request is a stream from which to read the same string that is the value of the DataMsg parameter. This syntax is preferred because the stream need not store this value in memory (for example, it can be a file stream).
Response is a stream object that receives the encoded results that arise from executing the method call.
When using the third syntax, Execute returns a stream from which to read the encoded results from executing the method call. In this case, the caller is responsible for freeing the stream.