RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokableClassRegistry Class

TInvokableClassRegistry is the type of the invocation registry.

Pascal
TInvokableClassRegistry = class(TInterfacedObject);
C++
class TInvokableClassRegistry : public TInterfacedObject;

TInvokableClassRegistry manages information about invokable interfaces and the classes that implement them. Invokable interfaces are used in applications that work with Web Services. 

Server applications that implement Web Services need to register both the invokable interfaces and the implementation classes. The invoker component (such as THTTPSoapPascalInvoker or THTTPSoapCppInvoker) can then use the invocation registry to locate invokable interfaces and execute calls made to them. In addition, server applications should register the headers that are used with calls to the methods of the invokable interface and the exceptions that such calls can raise.  

Client applications that call on Web Services register the invokable interfaces that they call. The remote interfaced object component (THTTPRio) can then use the invocation registry to generate a dynamic vtable for calling the invokable interfaces. 

Do not create instances of TInvokableClassRegistry. Instead, use the global InvRegistry function to access the invocation registry. Most applications need only call the RegisterInterface and (if a server) the RegisterInvokableClass methods. The other TInvokableClassRegistry methods are used by invoker components, remote interfaced object components, and the WSDL document importer. The allow these components to look up information about invokable interfaces and their implementation classes, access invokable interfaces, and so on. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!