unit FetchLibrary_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, {Used RODL Intf's:} DataAbstract4_Intf, {Used RODL Invk's:} DataAbstract4_Invk, {Generated:} FetchLibrary_Intf; type {$M+} TFetchService_Invoker = class(TDataAbstractService_Invoker) private protected published procedure Invoke_GetOrdersAndDetails(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); end; {$M-} implementation uses {RemObjects:} uRORes, uROClient; { TFetchService_Invoker } procedure TFetchService_Invoker.Invoke_GetOrdersAndDetails(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function GetOrdersAndDetails(const StartOrderID: Integer; const EndOrderID: Integer): Binary; } var StartOrderID: Integer; EndOrderID: Integer; lResult: Binary; __lObjectDisposer: TROObjectDisposer; begin lResult := nil; try __Message.Read('StartOrderID', TypeInfo(Integer), StartOrderID, []); __Message.Read('EndOrderID', TypeInfo(Integer), EndOrderID, []); lResult := (__Instance as IFetchService).GetOrdersAndDetails(StartOrderID, EndOrderID); __Message.InitializeResponseMessage(__Transport, 'FetchLibrary', 'FetchService', 'GetOrdersAndDetailsResponse'); __Message.Write('Result', TypeInfo(Binary), lResult, []); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally __lObjectDisposer := TROObjectDisposer.Create(__Instance); try __lObjectDisposer.Add(lResult); finally __lObjectDisposer.Free(); end; end; end; end.