unit BonjourDiscoverableLibrary_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:} BonjourDiscoverableLibrary_Intf; type TBonjourDiscoverableService_Invoker = class(TROInvoker) private protected public constructor Create; override; published procedure Invoke_IntroduceMyself(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); procedure Invoke_WhoAreYou(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); end; implementation uses {RemObjects:} uRORes, uROClient; { TBonjourDiscoverableService_Invoker } constructor TBonjourDiscoverableService_Invoker.Create; begin inherited Create; FAbstract := False; end; procedure TBonjourDiscoverableService_Invoker.Invoke_IntroduceMyself(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function IntroduceMyself(const MyName: AnsiString): AnsiString; } var MyName: AnsiString; lResult: AnsiString; begin try __Message.Read('MyName', TypeInfo(AnsiString), MyName, []); lResult := (__Instance as IBonjourDiscoverableService).IntroduceMyself(MyName); __Message.InitializeResponseMessage(__Transport, 'BonjourDiscoverableLibrary', 'BonjourDiscoverableService', 'IntroduceMyselfResponse'); __Message.Write('Result', TypeInfo(AnsiString), lResult, []); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; procedure TBonjourDiscoverableService_Invoker.Invoke_WhoAreYou(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function WhoAreYou: AnsiString; } var lResult: AnsiString; begin try lResult := (__Instance as IBonjourDiscoverableService).WhoAreYou; __Message.InitializeResponseMessage(__Transport, 'BonjourDiscoverableLibrary', 'BonjourDiscoverableService', 'WhoAreYouResponse'); __Message.Write('Result', TypeInfo(AnsiString), lResult, []); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; initialization end.