Componentes.Terceros.RemObj.../internal/5.0.35.741/1/RemObjects SDK for Delphi/Samples/Auto Server/AutoServerLibrary_Invk.pas
2009-02-28 17:16:16 +00:00

83 lines
2.8 KiB
ObjectPascal

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.