Componentes.Terceros.RemObj.../internal/5.0.35.741/1/RemObjects SDK for Delphi/Samples/Message Envelopes/MessageEnvelopesLibrary_Invk.pas

65 lines
2.0 KiB
ObjectPascal
Raw Normal View History

unit MessageEnvelopesLibrary_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:} MessageEnvelopesLibrary_Intf;
type
TMessageEnvelopesService_Invoker = class(TROInvoker)
private
protected
public
constructor Create; override;
published
procedure Invoke_Echo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
implementation
uses
{RemObjects:} uRORes, uROClient;
{ TMessageEnvelopesService_Invoker }
constructor TMessageEnvelopesService_Invoker.Create;
begin
inherited Create;
FAbstract := False;
end;
procedure TMessageEnvelopesService_Invoker.Invoke_Echo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function Echo(const AStr: AnsiString): AnsiString; }
var
AStr: AnsiString;
lResult: AnsiString;
begin
try
__Message.Read('AStr', TypeInfo(AnsiString), AStr, []);
lResult := (__Instance as IMessageEnvelopesService).Echo(AStr);
__Message.InitializeResponseMessage(__Transport, 'MessageEnvelopesLibrary', 'MessageEnvelopesService', 'EchoResponse');
__Message.Write('Result', TypeInfo(AnsiString), lResult, []);
__Message.Finalize;
__Message.UnsetAttributes(__Transport);
finally
end;
end;
initialization
end.