RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLinkedWebNode.BeforeExecute Method

Caches the RTTI for the method that is about to be executed.

Pascal
procedure BeforeExecute(const IntfMetaData: TIntfMetaData; const MethodMetaData: TIntfMethEntry; MethodIndex: Integer; AttachHandler: IMimeAttachmentHandler); virtual;
C++
virtual __fastcall BeforeExecute(const TIntfMetaData IntfMetaData, const TIntfMethEntry MethodMetaData, int MethodIndex, IMimeAttachmentHandler AttachHandler);

BeforeExecute implements the IWebNode method of the same name. The remote interface object (TRio) calls this method after its OnBeforeExecute event, but before calling the Execute method to send a request to the Web Service application. BeforeExecute allows an IWebNode implementation class to perform any transport-specific tasks prior to establishing a connection. Because TLinkedWebNode only works with interfaces implemented in the same executable, there is no transport protocol at all, and no transport-specific tasks to perform. BeforeExecute merely caches the RTTI for the method that is about to be executed. 

IntfMD is the runtime type information (RTTI) of the invokable interface that includes the method to execute. 

MethMD is describes the method that is about to be executed. 

MethodIndex indicates which overload to use when methMD describes an overloaded method. 0 indicates the first overload, 1 indicates the second overload, and so on.  

AttachHandler is an interface to use for handling any attachments that are used as parameters of the method. If AttachHandler is nil (Delphi) or NULL (C++), the method call does not require passing any attachments. 

 

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