Componentes.Terceros.RemObj.../official/5.0.35.741/RemObjects SDK for Delphi/Source/uRODiscovery_Invk.pas
2009-02-27 15:16:56 +00:00

80 lines
2.7 KiB
ObjectPascal

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:} uROXMLIntf, uROServer, uROServerIntf, uROTypes, uROClientIntf,
{Generated:} uRODiscovery_Intf;
type
TIRODiscoveryService_Invoker = class(TROInvoker)
private
protected
public
constructor Create; override;
published
procedure Invoke_FindService(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
implementation
uses
{RemObjects:} uRORes, uROClient;
{ TIRODiscoveryService_Invoker }
constructor TIRODiscoveryService_Invoker.Create;
begin
inherited Create;
FAbstract := False;
end;
procedure TIRODiscoveryService_Invoker.Invoke_FindService(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function FindService(const iName: AnsiString; var ioServerOptions: TRODiscoveryOptions): AnsiString; }
var
iName: AnsiString;
ioServerOptions: TRODiscoveryOptions;
__in_ioServerOptions: TRODiscoveryOptions;
lResult: AnsiString;
__lObjectDisposer: TROObjectDisposer;
begin
ioServerOptions := nil;
__in_ioServerOptions := nil;
try
__Message.Read('iName', TypeInfo(AnsiString), 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(AnsiString), lResult, []);
__Message.Write('ioServerOptions', TypeInfo(TRODiscoveryOptions), ioServerOptions, []);
__Message.Finalize;
__Message.UnsetAttributes(__Transport);
finally
__lObjectDisposer := TROObjectDisposer.Create(__Instance);
try
__lObjectDisposer.Add(__in_ioServerOptions);
__lObjectDisposer.Add(ioServerOptions);
finally
__lObjectDisposer.Free();
end;
end;
end;
initialization
end.