RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IOPConvert.MakeResponse Method

Encodes the results of successfully executing a method on an invokable interface.

Pascal
procedure MakeResponse(const IntfMD: TIntfMetaData; const MethNum: Integer; Context: TInvContext; Response: TStream; Headers: THeaderList);
C++
__fastcall MakeResponse(const TIntfMetaData IntfMD, const int MethNum, TInvContext Context, TStream Response, THeaderList Headers);

MakeResponse retrieves the results of executing a method on an invokable interface from an invocation context and packages them into a transportable string, which it writes to a stream. This string is passed back to the client, which can unpack it using the ProcessResponse method. 

IntfMD represents the runtime type information (RTTI) from the interface whose method was executed. 

MethNum identifies the called method by its position in the interface's method table. 

Context is the invocation context that contains details of the method call. 

Response is a stream to which MakeResponse writes the encoded version of the method result and any output parameters. 

Headers is a list of TSOAPHeader descendants that represent the headers that should be added to the response message. 

 

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