RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWSDLClientNode.Execute Method (String, TStream)

Executes an encoded method call and returns the encoded results in a stream.

Pascal
procedure Execute(const DataMsg: String; Resp: TStream); overload;
C++
__fastcall Execute(const AnsiString DataMsg, TStream Resp);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!