RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWSDLClientNode.BeforeExecute Method

Performs any transport-specific setup before executing an encoded method call.

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

BeforeExecute handles transport-specific tasks such as dynamically querying a WSDL document or setting up serialization options before a call is made to the Execute method. Remote interfaced objects (TRio) call this method after their OnBeforeExecute event, but before delegating the execution of the method to the Execute method. 

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. 

 

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