- Recompilación de todos los paquetes de RO para poner RemObjects_Core_D10 como paquete de runtime/designtime. git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@5 b6239004-a887-0f4b-9937-50029ccdca16
105 lines
3.0 KiB
ObjectPascal
105 lines
3.0 KiB
ObjectPascal
unit FetchLibrary_Intf;
|
|
|
|
{----------------------------------------------------------------------------}
|
|
{ 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, TypInfo,
|
|
{RemObjects:} uROXMLIntf, uROClasses, uROClient, uROTypes, uROClientIntf,
|
|
{Used RODLs:} DataAbstract4_Intf;
|
|
|
|
const
|
|
{ Library ID }
|
|
LibraryUID = '{02C22018-F060-4159-A052-DDFAECD3EA97}';
|
|
TargetNamespace = '';
|
|
|
|
{ Service Interface ID's }
|
|
IFetchService_IID : TGUID = '{E70F3537-38F1-4C4E-AB64-6935C9C9CF69}';
|
|
|
|
{ Event ID's }
|
|
|
|
type
|
|
{ Forward declarations }
|
|
IFetchService = interface;
|
|
|
|
|
|
|
|
|
|
|
|
{ Enumerateds }
|
|
|
|
{ IFetchService }
|
|
IFetchService = interface(IDataAbstractService)
|
|
['{E70F3537-38F1-4C4E-AB64-6935C9C9CF69}']
|
|
function GetOrdersAndDetails(const StartOrderID: Integer; const EndOrderID: Integer): Binary;
|
|
end;
|
|
|
|
{ CoFetchService }
|
|
CoFetchService = class
|
|
class function Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IFetchService;
|
|
end;
|
|
|
|
{ TFetchService_Proxy }
|
|
TFetchService_Proxy = class(TDataAbstractService_Proxy, IFetchService)
|
|
protected
|
|
function __GetInterfaceName:string; override;
|
|
|
|
function GetOrdersAndDetails(const StartOrderID: Integer; const EndOrderID: Integer): Binary;
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses
|
|
{vcl:} SysUtils,
|
|
{RemObjects:} uROEventRepository, uROSerializer, uRORes;
|
|
|
|
{ CoFetchService }
|
|
|
|
class function CoFetchService.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IFetchService;
|
|
begin
|
|
result := TFetchService_Proxy.Create(aMessage, aTransportChannel);
|
|
end;
|
|
|
|
{ TFetchService_Proxy }
|
|
|
|
function TFetchService_Proxy.__GetInterfaceName:string;
|
|
begin
|
|
result := 'FetchService';
|
|
end;
|
|
|
|
function TFetchService_Proxy.GetOrdersAndDetails(const StartOrderID: Integer; const EndOrderID: Integer): Binary;
|
|
begin
|
|
try
|
|
result := nil;
|
|
__Message.InitializeRequestMessage(__TransportChannel, 'FetchLibrary', __InterfaceName, 'GetOrdersAndDetails');
|
|
__Message.Write('StartOrderID', TypeInfo(Integer), StartOrderID, []);
|
|
__Message.Write('EndOrderID', TypeInfo(Integer), EndOrderID, []);
|
|
__Message.Finalize;
|
|
|
|
__TransportChannel.Dispatch(__Message);
|
|
|
|
__Message.Read('Result', TypeInfo(Binary), result, []);
|
|
finally
|
|
__Message.UnsetAttributes(__TransportChannel);
|
|
__Message.FreeStream;
|
|
end
|
|
end;
|
|
|
|
initialization
|
|
RegisterProxyClass(IFetchService_IID, TFetchService_Proxy);
|
|
|
|
|
|
finalization
|
|
UnregisterProxyClass(IFetchService_IID);
|
|
|
|
end.
|