Soap.InvokeRegistry.TInvokableClassRegistry.RegisterInvokableClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterInvokableClass(AClass: TClass; CreateProc: TCreateInstanceProc); overload;
procedure RegisterInvokableClass(AClass: TClass); overload;

C++

void __fastcall RegisterInvokableClass(System::TClass AClass, TCreateInstanceProc CreateProc)/* overload */;
void __fastcall RegisterInvokableClass(System::TClass AClass)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry TInvokableClassRegistry

Description

Registers the implementation class for an invokable interface.

RegisterInvokableClass registers the class that implements an already-registered invokable interface. It is only needed on server applications that implement Web Services. The interface itself is registered by the RegisterInterface method.

The invocation registry must be able to instantiate the implementation class. If the class has a virtual constructor that takes no arguments, you do not need to supply a method to create the class instance. If the constructor takes any arguments, of if it is not virtual, you must supply a method to instantiate the class as the value of the CreateProc argument.

AClass is a class reference to the class being registered. In Delphi code, you need only supply the class name. In C++, you can obtain a class reference for a class using the __classid operator.

CreateProc is a procedure that returns an instance of AClass. If CreateProc is nil (Delphi) or NULL (C++), then AClass must be a descendant of TInvokableClass.

See Also