unit AutoServerLibrary_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. } {----------------------------------------------------------------------------} {$I Remobjects.inc} interface uses {vcl:} Classes, {RemObjects:} uROXMLIntf, uROServer, uROServerIntf, uROTypes, uROClientIntf, {Generated:} AutoServerLibrary_Intf; type TAutoServerService_Invoker = class(TROInvoker) private protected public constructor Create; override; published procedure Invoke_GetServerTime(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); procedure Invoke_GetEnvironment(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); end; implementation uses {RemObjects:} uRORes, uROClient; { TAutoServerService_Invoker } constructor TAutoServerService_Invoker.Create; begin inherited Create; FAbstract := False; end; procedure TAutoServerService_Invoker.Invoke_GetServerTime(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function GetServerTime: DateTime; } var lResult: DateTime; begin try lResult := (__Instance as IAutoServerService).GetServerTime; __Message.InitializeResponseMessage(__Transport, 'AutoServerLibrary', 'AutoServerService', 'GetServerTimeResponse'); __Message.Write('Result', TypeInfo(DateTime), lResult, [paIsDateTime]); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; procedure TAutoServerService_Invoker.Invoke_GetEnvironment(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function GetEnvironment(const Environment: Widestring): Widestring; } var Environment: Widestring; lResult: Widestring; begin try __Message.Read('Environment', TypeInfo(Widestring), Environment, []); lResult := (__Instance as IAutoServerService).GetEnvironment(Environment); __Message.InitializeResponseMessage(__Transport, 'AutoServerLibrary', 'AutoServerService', 'GetEnvironmentResponse'); __Message.Write('Result', TypeInfo(Widestring), lResult, []); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; initialization end.