unit NewLibrary_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:} NewLibrary_Intf; type TSeekOrigin = Classes.TSeekOrigin; // fake declaration TNewService_Invoker = class(TROInvoker) private protected public constructor Create; override; published procedure Invoke_Sum(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); procedure Invoke_LongDurationIntermediateSocketIOResults(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); end; implementation uses {RemObjects:} uRORes, uROClient; { TNewService_Invoker } constructor TNewService_Invoker.Create; begin inherited Create; FAbstract := False; end; procedure TNewService_Invoker.Invoke_Sum(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function Sum(const a: Integer; const b: Integer): Integer; } var a: Integer; b: Integer; lResult: Integer; begin try __Message.Read('a', TypeInfo(Integer), a, []); __Message.Read('b', TypeInfo(Integer), b, []); lResult := (__Instance as INewService).Sum(a, b); __Message.InitializeResponseMessage(__Transport, 'NewLibrary', 'NewService', 'SumResponse'); __Message.Write('Result', TypeInfo(Integer), lResult, []); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; procedure TNewService_Invoker.Invoke_LongDurationIntermediateSocketIOResults(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function LongDurationIntermediateSocketIOResults(const aDuration_ms: Integer; const aSleep_ms: Integer): Integer; } var aDuration_ms: Integer; aSleep_ms: Integer; lResult: Integer; begin try __Message.Read('aDuration_ms', TypeInfo(Integer), aDuration_ms, []); __Message.Read('aSleep_ms', TypeInfo(Integer), aSleep_ms, []); lResult := (__Instance as INewService).LongDurationIntermediateSocketIOResults(aDuration_ms, aSleep_ms); __Message.InitializeResponseMessage(__Transport, 'NewLibrary', 'NewService', 'LongDurationIntermediateSocketIOResultsResponse'); __Message.Write('Result', TypeInfo(Integer), lResult, []); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; initialization end.