59 lines
1.9 KiB
ObjectPascal
59 lines
1.9 KiB
ObjectPascal
|
|
unit ArraysLibrary_Invk;
|
||
|
|
|
||
|
|
{----------------------------------------------------------------------------}
|
||
|
|
{ This unit was automatically generated by the RemObjects SDK after reading }
|
||
|
|
{ the RODL file associated with this project . }
|
||
|
|
{ }
|
||
|
|
{ Do not modify this unit manually, or your changes will be lost when this }
|
||
|
|
{ unit is regenerated the next time you compile the project. }
|
||
|
|
{----------------------------------------------------------------------------}
|
||
|
|
|
||
|
|
interface
|
||
|
|
|
||
|
|
uses
|
||
|
|
{vcl:} Classes,
|
||
|
|
{RemObjects:} uROXMLIntf, uROServer, uROServerIntf, uROTypes, uROClientIntf,
|
||
|
|
{Generated:} ArraysLibrary_Intf;
|
||
|
|
|
||
|
|
type
|
||
|
|
TArraysService_Invoker = class(TROInvoker)
|
||
|
|
private
|
||
|
|
protected
|
||
|
|
published
|
||
|
|
procedure Invoke_GetTables(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
|
||
|
|
end;
|
||
|
|
|
||
|
|
implementation
|
||
|
|
|
||
|
|
uses
|
||
|
|
{RemObjects:} uRORes, uROClient;
|
||
|
|
|
||
|
|
{ TArraysService_Invoker }
|
||
|
|
|
||
|
|
procedure TArraysService_Invoker.Invoke_GetTables(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
|
||
|
|
{ function GetTables: Tables; }
|
||
|
|
var
|
||
|
|
lResult: ArraysLibrary_Intf.Tables;
|
||
|
|
__lObjectDisposer: TROObjectDisposer;
|
||
|
|
begin
|
||
|
|
lResult := nil;
|
||
|
|
try
|
||
|
|
lResult := (__Instance as IArraysService).GetTables;
|
||
|
|
|
||
|
|
__Message.InitializeResponseMessage(__Transport, 'ArraysLibrary', 'ArraysService', 'GetTablesResponse');
|
||
|
|
__Message.Write('Result', TypeInfo(ArraysLibrary_Intf.Tables), lResult, []);
|
||
|
|
__Message.Finalize;
|
||
|
|
__Message.UnsetAttributes(__Transport);
|
||
|
|
|
||
|
|
finally
|
||
|
|
__lObjectDisposer := TROObjectDisposer.Create(__Instance);
|
||
|
|
try
|
||
|
|
__lObjectDisposer.Add(lResult);
|
||
|
|
finally
|
||
|
|
__lObjectDisposer.Free();
|
||
|
|
end;
|
||
|
|
end;
|
||
|
|
end;
|
||
|
|
|
||
|
|
end.
|