Soap.SOAPMidas.RegDefIAppServerInvClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegDefIAppServerInvClass;

C++

extern DELPHI_PACKAGE void __fastcall RegDefIAppServerInvClass();

Properties

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

Description

Registers a SOAP data module for use by clients built using Kylix 2 or Delphi 5 prior to update patch 2.

RegDefIAppServerInvClass registers TSoapDataModule as an invokable class that implements IAppServer as a Web Service. C++ applications must add a call to this procedure after the registration of IAppServerSOAP in the program startup code if they are to be used by clients written using Kylix 2 or Delphi 5 prior to update patch 2. This call is not necessary for other clients of a Web Service-based application server, because they look for the IAppServerSOAP interface.

Note: Delphi applications do not need to call this procedure.

The following example shows where to place the call to RegDefIAppServerInvClass:

void static RegTypes()
{
  InvRegistry()->RegisterInterface(__interfaceTypeinfo(IMyAppServerService));
  InvRegistry()->RegisterInvokableClass(__classid(TMyAppServerService), 
    MyAppServerServiceFactory);
  RegDefIAppServerInvClass();
}
#pragma startup RegTypes 32

See Also