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

Executes a SOAP method call and returns the encoded results.

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

Execute implements the IWebNode method of the same name. TLinkedRio uses this method to execute a method on an invokable interface that has been encoded as a SOAP method call. 

Execute 

 

  1. Uses the invocation registry to look up the implementation class for the invokable interface. 

  2. Uses its internal invoker (the Invoker property) to unmarshal the request specified by Request or DataMsg and pass it to the implementation class for execution. 

  3. Returns the encoded results from the invoker in the stream specified by Response or, using the third syntax, in a stream that is the return value of the method. When using the third syntax, the caller is responsible for freeing the returned stream.

 

Execute 

TLinkedRio 

Invoker

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!