unit FactuGES_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.                 }
{----------------------------------------------------------------------------}

interface

uses
  {vcl:} Classes,
  {RemObjects:} uROServer, uROServerIntf, uROTypes, uROClientIntf,
  {Used RODL Intf's:} DataAbstract_Intf,
  {Used RODL Invk's:} DataAbstract_Invk,
  {Generated:} FactuGES_Intf;

type
  TsrvContactos_Invoker = class(TDARemoteService_Invoker)
  private
  protected
  published
    procedure Invoke_GenerateReport(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_getCodigo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvLogin_Invoker = class(TDALoginService_Invoker)
  private
  protected
  published
    procedure Invoke_Ping(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvObras_Invoker = class(TDARemoteService_Invoker)
  private
  protected
  published
    procedure Invoke_getCodigo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvConfiguracion_Invoker = class(TDARemoteService_Invoker)
  private
  protected
  published
    procedure Invoke_darRutaProyectos(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_darRutaNormativas(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_darEstructuraDirProyectos(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_darEstructuraDirNormativas(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvFacturasCliente_Invoker = class(TDARemoteService_Invoker)
  private
  protected
  published
    procedure Invoke_GetNextAutoInc(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_GenerateReport(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_darNuevaReferenciaFactura(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_darNuevaReferenciaFacturaPro(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvRecibosCliente_Invoker = class(TDARemoteService_Invoker)
  private
  protected
  published
    procedure Invoke_GetNextAutoInc(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
    procedure Invoke_GenerateReport(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

  TsrvCitas_Invoker = class(TDARemoteService_Invoker)
  private
  protected
  published
    procedure Invoke_getCodigo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
  end;

implementation

uses
  {RemObjects:} uRORes, uROClient;

{ TsrvContactos_Invoker }

procedure TsrvContactos_Invoker.Invoke_GenerateReport(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GenerateReport: Binary; }
var
  lResult: Binary;
  __lObjectDisposer: TROObjectDisposer;
begin
  lResult := nil;
  try
    lResult := (__Instance as IsrvContactos).GenerateReport;

    __Message.Initialize(__Transport, 'FactuGES', 'srvContactos', 'GenerateReportResponse');
    __Message.Write('Result', TypeInfo(Binary), lResult, []);
    __Message.Finalize;

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

procedure TsrvContactos_Invoker.Invoke_getCodigo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function getCodigo(const GeneratorName: String): Integer; }
var
  GeneratorName: String;
  lResult: Integer;
begin
  try
    __Message.Read('GeneratorName', TypeInfo(String), GeneratorName, []);

    lResult := (__Instance as IsrvContactos).getCodigo(GeneratorName);

    __Message.Initialize(__Transport, 'FactuGES', 'srvContactos', 'getCodigoResponse');
    __Message.Write('Result', TypeInfo(Integer), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

{ TsrvLogin_Invoker }

procedure TsrvLogin_Invoker.Invoke_Ping(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function Ping: Boolean; }
var
  lResult: Boolean;
begin
  try
    lResult := (__Instance as IsrvLogin).Ping;

    __Message.Initialize(__Transport, 'FactuGES', 'srvLogin', 'PingResponse');
    __Message.Write('Result', TypeInfo(Boolean), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

{ TsrvObras_Invoker }

procedure TsrvObras_Invoker.Invoke_getCodigo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function getCodigo(const GeneratorName: String): Integer; }
var
  GeneratorName: String;
  lResult: Integer;
begin
  try
    __Message.Read('GeneratorName', TypeInfo(String), GeneratorName, []);

    lResult := (__Instance as IsrvObras).getCodigo(GeneratorName);

    __Message.Initialize(__Transport, 'FactuGES', 'srvObras', 'getCodigoResponse');
    __Message.Write('Result', TypeInfo(Integer), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

{ TsrvConfiguracion_Invoker }

procedure TsrvConfiguracion_Invoker.Invoke_darRutaProyectos(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function darRutaProyectos: String; }
var
  lResult: String;
begin
  try
    lResult := (__Instance as IsrvConfiguracion).darRutaProyectos;

    __Message.Initialize(__Transport, 'FactuGES', 'srvConfiguracion', 'darRutaProyectosResponse');
    __Message.Write('Result', TypeInfo(String), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

procedure TsrvConfiguracion_Invoker.Invoke_darRutaNormativas(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function darRutaNormativas: String; }
var
  lResult: String;
begin
  try
    lResult := (__Instance as IsrvConfiguracion).darRutaNormativas;

    __Message.Initialize(__Transport, 'FactuGES', 'srvConfiguracion', 'darRutaNormativasResponse');
    __Message.Write('Result', TypeInfo(String), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

procedure TsrvConfiguracion_Invoker.Invoke_darEstructuraDirProyectos(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function darEstructuraDirProyectos: TDAStringArray; }
var
  lResult: DataAbstract_Intf.TDAStringArray;
  __lObjectDisposer: TROObjectDisposer;
begin
  lResult := nil;
  try
    lResult := (__Instance as IsrvConfiguracion).darEstructuraDirProyectos;

    __Message.Initialize(__Transport, 'FactuGES', 'srvConfiguracion', 'darEstructuraDirProyectosResponse');
    __Message.Write('Result', TypeInfo(DataAbstract_Intf.TDAStringArray), lResult, []);
    __Message.Finalize;

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

procedure TsrvConfiguracion_Invoker.Invoke_darEstructuraDirNormativas(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function darEstructuraDirNormativas: TDAStringArray; }
var
  lResult: DataAbstract_Intf.TDAStringArray;
  __lObjectDisposer: TROObjectDisposer;
begin
  lResult := nil;
  try
    lResult := (__Instance as IsrvConfiguracion).darEstructuraDirNormativas;

    __Message.Initialize(__Transport, 'FactuGES', 'srvConfiguracion', 'darEstructuraDirNormativasResponse');
    __Message.Write('Result', TypeInfo(DataAbstract_Intf.TDAStringArray), lResult, []);
    __Message.Finalize;

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

{ TsrvFacturasCliente_Invoker }

procedure TsrvFacturasCliente_Invoker.Invoke_GetNextAutoInc(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GetNextAutoInc: Integer; }
var
  lResult: Integer;
begin
  try
    lResult := (__Instance as IsrvFacturasCliente).GetNextAutoInc;

    __Message.Initialize(__Transport, 'FactuGES', 'srvFacturasCliente', 'GetNextAutoIncResponse');
    __Message.Write('Result', TypeInfo(Integer), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

procedure TsrvFacturasCliente_Invoker.Invoke_GenerateReport(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GenerateReport(const Codigo: Integer): Binary; }
var
  Codigo: Integer;
  lResult: Binary;
  __lObjectDisposer: TROObjectDisposer;
begin
  lResult := nil;
  try
    __Message.Read('Codigo', TypeInfo(Integer), Codigo, []);

    lResult := (__Instance as IsrvFacturasCliente).GenerateReport(Codigo);

    __Message.Initialize(__Transport, 'FactuGES', 'srvFacturasCliente', 'GenerateReportResponse');
    __Message.Write('Result', TypeInfo(Binary), lResult, []);
    __Message.Finalize;

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

procedure TsrvFacturasCliente_Invoker.Invoke_darNuevaReferenciaFactura(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function darNuevaReferenciaFactura: String; }
var
  lResult: String;
begin
  try
    lResult := (__Instance as IsrvFacturasCliente).darNuevaReferenciaFactura;

    __Message.Initialize(__Transport, 'FactuGES', 'srvFacturasCliente', 'darNuevaReferenciaFacturaResponse');
    __Message.Write('Result', TypeInfo(String), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

procedure TsrvFacturasCliente_Invoker.Invoke_darNuevaReferenciaFacturaPro(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function darNuevaReferenciaFacturaPro: String; }
var
  lResult: String;
begin
  try
    lResult := (__Instance as IsrvFacturasCliente).darNuevaReferenciaFacturaPro;

    __Message.Initialize(__Transport, 'FactuGES', 'srvFacturasCliente', 'darNuevaReferenciaFacturaProResponse');
    __Message.Write('Result', TypeInfo(String), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

{ TsrvRecibosCliente_Invoker }

procedure TsrvRecibosCliente_Invoker.Invoke_GetNextAutoInc(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GetNextAutoInc: Integer; }
var
  lResult: Integer;
begin
  try
    lResult := (__Instance as IsrvRecibosCliente).GetNextAutoInc;

    __Message.Initialize(__Transport, 'FactuGES', 'srvRecibosCliente', 'GetNextAutoIncResponse');
    __Message.Write('Result', TypeInfo(Integer), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

procedure TsrvRecibosCliente_Invoker.Invoke_GenerateReport(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GenerateReport(const Codigo: Integer): Binary; }
var
  Codigo: Integer;
  lResult: Binary;
  __lObjectDisposer: TROObjectDisposer;
begin
  lResult := nil;
  try
    __Message.Read('Codigo', TypeInfo(Integer), Codigo, []);

    lResult := (__Instance as IsrvRecibosCliente).GenerateReport(Codigo);

    __Message.Initialize(__Transport, 'FactuGES', 'srvRecibosCliente', 'GenerateReportResponse');
    __Message.Write('Result', TypeInfo(Binary), lResult, []);
    __Message.Finalize;

  finally
    __lObjectDisposer := TROObjectDisposer.Create(__Instance);
    try
      __lObjectDisposer.Add(lResult);
    finally
      __lObjectDisposer.Free();
    end;
  end;
end;

{ TsrvCitas_Invoker }

procedure TsrvCitas_Invoker.Invoke_getCodigo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function getCodigo(const Generador: String): Integer; }
var
  Generador: String;
  lResult: Integer;
begin
  try
    __Message.Read('Generador', TypeInfo(String), Generador, []);

    lResult := (__Instance as IsrvCitas).getCodigo(Generador);

    __Message.Initialize(__Transport, 'FactuGES', 'srvCitas', 'getCodigoResponse');
    __Message.Write('Result', TypeInfo(Integer), lResult, []);
    __Message.Finalize;

  finally
  end;
end;

end.
