RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
InvokeRegistry.RemClassRegistry Function

Provides access to the remotable class registry.

Pascal
function RemClassRegistry: TRemotableClassRegistry;
C++
TRemotableClassRegistry RemClassRegistry();

InvokeRegistry

RemClassRegistry returns the object that implements the remotable class registry. Use its RegisterXSClass method to register a remotable class in an application that publishes or uses Web Services. 

Remotable classes are classes that can be transmitted between the client of a Web Services application and the server that implements the service. They can be used to represent non-scalar types for parameters and return values, or they can represent exceptions that occur when trying to execute a request to a Web Service application. All remotable classes are compiled with runtime type information (RTTI) and have a virtual constructor that the remotable class registry recognizes and uses to obtain class instances. 

Both the client application and server application must register remotable classes before they can use them. They must register them to use the same namespace. You can either supply this namespace explicitly when you register the class, or you can use the automatically generated namespace. If you use the automatically generated interface, the class must be defined in the same unit on both client and server, and both client and server must have the same value set for the global AppNameSpacePrefix variable.

Note: The remotable class registry is the same thing as the remotable type registry. You can use RemClassRegistry interchangeably with the RemTypeRegistry function.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!