unit uRODiscovery_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:} uROServer, uROServerIntf, uROTypes, uROClientIntf, {Generated:} uRODiscovery_Intf; type TIRODiscoveryService_Invoker = class(TROInvoker) private protected published procedure Invoke_FindService(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); end; implementation uses {RemObjects:} uRORes, uROClient; { TIRODiscoveryService_Invoker } procedure TIRODiscoveryService_Invoker.Invoke_FindService(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); var iName: String; ioServerOptions: TRODiscoveryOptions; __in_ioServerOptions: TRODiscoveryOptions; lResult: String; __lObjectDisposer: TROObjectDisposer; begin ioServerOptions := nil; __in_ioServerOptions := nil; try __Message.Read('iName', TypeInfo(String), iName, []); __Message.Read('ioServerOptions', TypeInfo(TRODiscoveryOptions), ioServerOptions, []); __in_ioServerOptions := ioServerOptions; lResult := (__Instance as IRODiscoveryService).FindService(iName, ioServerOptions); __Message.InitializeResponseMessage(__Transport, 'RODiscovery', 'IRODiscoveryService', 'FindServiceResponse'); __Message.Write('Result', TypeInfo(String), lResult, []); __Message.Write('ioServerOptions', TypeInfo(TRODiscoveryOptions), ioServerOptions, []); __Message.Finalize; finally __lObjectDisposer := TROObjectDisposer.Create(__Instance); try __lObjectDisposer.Add(__in_ioServerOptions); __lObjectDisposer.Add(ioServerOptions); finally __lObjectDisposer.Free(); end; end; end; end.