RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IOPConvert.MsgToInvContext Method (InvString, TIntfMetaData, Integer, TInvContext)

Unpacks an encoded method call into an invocation context so that it can be executed.

Pascal
procedure MsgToInvContext(const Request: InvString; const IntfMD: TIntfMetaData; var MethNum: Integer; Context: TInvContext); overload;
procedure MsgToInvContext(const Request: TStream; const IntfMD: TIntfMetaData; var MethNum: Integer; Context: TInvContext; Headers: THeaderList); overload;
C++
__fastcall MsgToInvContext(const InvString Request, const TIntfMetaData IntfMD, int MethNum, TInvContext Context);
__fastcall MsgToInvContext(const TStream Request, const TIntfMetaData IntfMD, int MethNum, TInvContext Context, THeaderList Headers);

MsgToInvContext takes an encoded message that a server application receives and uses it to fill out an invocation context, which can then be used to execute the method call. 

Request is the encoded method call, or a stream from which to read that method call. It is generated on the client by a call to InvContextToMsg

IntfMD represents the runtime type information (RTTI) from the interface whose method is called. 

MethNum returns the position of the called method in the interface's method table. 

Context is the invocation context to which this method adds the information encoded in Request. 

Headers is an object list to which MsgToInvContext adds TSOAPHeader descendants to represent every header in the encoded message. 

 

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