Componentes.Terceros.RemObj.../official/5.0.24.615/Data Abstract for Delphi/Samples/QuantumGrid 4/QuantumGrid4Library_Intf.pas

132 lines
3.7 KiB
ObjectPascal

unit QuantumGrid4Library_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. }
{----------------------------------------------------------------------------}
interface
uses
{vcl:} Classes, TypInfo,
{RemObjects:} uROClasses, uROClient, uROTypes, uROClientIntf,
{Used RODLs:} DataAbstract4_Intf;
const
{ Library ID }
LibraryUID = '{7EF63C27-FB17-4F10-985E-92BAF0E3E619}';
{ Service Interface ID's }
INewService_IID : TGUID = '{E4E6FDE4-2542-4554-B59A-438E23439111}';
{ Event ID's }
type
{ Forward declarations }
INewService = interface;
{ INewService }
INewService = interface(IDataAbstractService)
['{E4E6FDE4-2542-4554-B59A-438E23439111}']
function GetCustomers: Binary;
function UpdateCustomers(const IncomingData: Binary): Binary;
function GetOrders(const CustomerID: String): Binary;
end;
{ CoNewService }
CoNewService = class
class function Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): INewService;
end;
{ TNewService_Proxy }
TNewService_Proxy = class(TDataAbstractService_Proxy, INewService)
protected
function __GetInterfaceName:string; override;
function GetCustomers: Binary;
function UpdateCustomers(const IncomingData: Binary): Binary;
function GetOrders(const CustomerID: String): Binary;
end;
implementation
uses
{vcl:} SysUtils,
{RemObjects:} uROEventRepository, uRORes;
{ CoNewService }
class function CoNewService.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): INewService;
begin
result := TNewService_Proxy.Create(aMessage, aTransportChannel);
end;
{ TNewService_Proxy }
function TNewService_Proxy.__GetInterfaceName:string;
begin
result := 'NewService';
end;
function TNewService_Proxy.GetCustomers: Binary;
begin
try
result := nil;
__Message.InitializeRequestMessage(__TransportChannel, 'QuantumGrid4Library', __InterfaceName, 'GetCustomers');
__Message.Finalize;
__TransportChannel.Dispatch(__Message);
__Message.Read('Result', TypeInfo(Binary), result, []);
finally
__Message.FreeStream;
end
end;
function TNewService_Proxy.UpdateCustomers(const IncomingData: Binary): Binary;
begin
try
result := nil;
__Message.InitializeRequestMessage(__TransportChannel, 'QuantumGrid4Library', __InterfaceName, 'UpdateCustomers');
__Message.Write('IncomingData', TypeInfo(Binary), IncomingData, []);
__Message.Finalize;
__TransportChannel.Dispatch(__Message);
__Message.Read('Result', TypeInfo(Binary), result, []);
finally
__Message.FreeStream;
end
end;
function TNewService_Proxy.GetOrders(const CustomerID: String): Binary;
begin
try
result := nil;
__Message.InitializeRequestMessage(__TransportChannel, 'QuantumGrid4Library', __InterfaceName, 'GetOrders');
__Message.Write('CustomerID', TypeInfo(String), CustomerID, []);
__Message.Finalize;
__TransportChannel.Dispatch(__Message);
__Message.Read('Result', TypeInfo(Binary), result, []);
finally
__Message.FreeStream;
end
end;
initialization
RegisterProxyClass(INewService_IID, TNewService_Proxy);
finalization
UnregisterProxyClass(INewService_IID);
end.