// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://cacheaccept2010:57772/csp/dev1/WS.Sys.Toegang.UserServer.CLS?WSDL=1 // >Import : http://cacheaccept2010:57772/csp/dev1/WS.Sys.Toegang.UserServer.CLS?WSDL=1>0 // Encoding : UTF-8 // Codegen : [wfSkipUnusedTypes-, wfAllowOutParameters+] // Version : 1.0 // (2/08/2021 14:58:05 - - $Rev: 45757 $) // ************************************************************************ // unit UserServerService; interface uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns; const IS_OPTN = $0001; IS_REF = $0080; type // ************************************************************************ // // The following types, referred to in the WSDL document are not being represented // in this file. They are either aliases[@] of other types represented or were referred // to but never[!] declared in the document. The types from the latter category // typically map to predefined/known XML or Embarcadero types; however, they could also // indicate incorrect WSDL documents that failed to declare or import a schema type. // ************************************************************************ // // !:string - "http://www.w3.org/2001/XMLSchema"[Gbl] // !:boolean - "http://www.w3.org/2001/XMLSchema"[Gbl] pxStatus = class; { "http://vhintra.vanhoecke.be"[GblCplx] } pxLogIn = class; { "http://vhintra.vanhoecke.be"[GblCplx] } // ************************************************************************ // // XML : pxStatus, global, // Namespace : http://vhintra.vanhoecke.be // ************************************************************************ // pxStatus = class(TRemotable) private FIsOK: Boolean; FIsOK_Specified: boolean; FMessage_: string; FMessage__Specified: boolean; FInternalMessage: string; FInternalMessage_Specified: boolean; FData: string; FData_Specified: boolean; procedure SetIsOK(Index: Integer; const ABoolean: Boolean); function IsOK_Specified(Index: Integer): boolean; procedure SetMessage_(Index: Integer; const Astring: string); function Message__Specified(Index: Integer): boolean; procedure SetInternalMessage(Index: Integer; const Astring: string); function InternalMessage_Specified(Index: Integer): boolean; procedure SetData(Index: Integer; const Astring: string); function Data_Specified(Index: Integer): boolean; published property IsOK: Boolean Index (IS_OPTN) read FIsOK write SetIsOK stored IsOK_Specified; property Message_: string Index (IS_OPTN) read FMessage_ write SetMessage_ stored Message__Specified; property InternalMessage: string Index (IS_OPTN) read FInternalMessage write SetInternalMessage stored InternalMessage_Specified; property Data: string Index (IS_OPTN) read FData write SetData stored Data_Specified; end; // ************************************************************************ // // XML : pxLogIn, global, // Namespace : http://vhintra.vanhoecke.be // ************************************************************************ // pxLogIn = class(TRemotable) private FSessionKey: string; FSessionKey_Specified: boolean; FToegangID: string; FToegangID_Specified: boolean; FGebruikersNaam: string; FGebruikersNaam_Specified: boolean; FSettings: string; FSettings_Specified: boolean; FInDevelop: Boolean; FInDevelop_Specified: boolean; FServerName: string; FServerName_Specified: boolean; procedure SetSessionKey(Index: Integer; const Astring: string); function SessionKey_Specified(Index: Integer): boolean; procedure SetToegangID(Index: Integer; const Astring: string); function ToegangID_Specified(Index: Integer): boolean; procedure SetGebruikersNaam(Index: Integer; const Astring: string); function GebruikersNaam_Specified(Index: Integer): boolean; procedure SetSettings(Index: Integer; const Astring: string); function Settings_Specified(Index: Integer): boolean; procedure SetInDevelop(Index: Integer; const ABoolean: Boolean); function InDevelop_Specified(Index: Integer): boolean; procedure SetServerName(Index: Integer; const Astring: string); function ServerName_Specified(Index: Integer): boolean; published property SessionKey: string Index (IS_OPTN) read FSessionKey write SetSessionKey stored SessionKey_Specified; property ToegangID: string Index (IS_OPTN) read FToegangID write SetToegangID stored ToegangID_Specified; property GebruikersNaam: string Index (IS_OPTN) read FGebruikersNaam write SetGebruikersNaam stored GebruikersNaam_Specified; property Settings: string Index (IS_OPTN) read FSettings write SetSettings stored Settings_Specified; property InDevelop: Boolean Index (IS_OPTN) read FInDevelop write SetInDevelop stored InDevelop_Specified; property ServerName: string Index (IS_OPTN) read FServerName write SetServerName stored ServerName_Specified; end; // ************************************************************************ // // Namespace : http://vhintra.vanhoecke.be // soapAction: http://vhintra.vanhoecke.be/WS.Sys.Toegang.UserServer.%operationName% // transport : http://schemas.xmlsoap.org/soap/http // style : document // use : literal // binding : UserServerSoap // service : UserServer // port : UserServerSoap // URL : http://cacheaccept2010:57772/csp/dev1/WS.Sys.Toegang.UserServer.cls // ************************************************************************ // UserServerSoap = interface(IInvokable) ['{161BA6C5-717D-1FD5-0A06-6B43E6A58125}'] function LogIn(const Application_: string; const GebruikersNaam: string; const WachtWoord: string; const Domein: string; var pxLogIn: pxLogIn): pxStatus; stdcall; function LogOut(const SessionKey: string): pxStatus; stdcall; end; function GetUserServerSoap(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): UserServerSoap; implementation uses SysUtils; function GetUserServerSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): UserServerSoap; const defWSDL = 'http://cacheaccept2010:57772/csp/dev1/WS.Sys.Toegang.UserServer.CLS?WSDL=1'; defURL = 'http://cacheaccept2010:57772/csp/dev1/WS.Sys.Toegang.UserServer.cls'; defSvc = 'UserServer'; defPrt = 'UserServerSoap'; var RIO: THTTPRIO; begin Result := nil; if (Addr = '') then begin if UseWSDL then Addr := defWSDL else Addr := defURL; end; if HTTPRIO = nil then RIO := THTTPRIO.Create(nil) else RIO := HTTPRIO; try Result := (RIO as UserServerSoap); if UseWSDL then begin RIO.WSDLLocation := Addr; RIO.Service := defSvc; RIO.Port := defPrt; end else RIO.URL := Addr; finally if (Result = nil) and (HTTPRIO = nil) then RIO.Free; end; end; procedure pxStatus.SetIsOK(Index: Integer; const ABoolean: Boolean); begin FIsOK := ABoolean; FIsOK_Specified := True; end; function pxStatus.IsOK_Specified(Index: Integer): boolean; begin Result := FIsOK_Specified; end; procedure pxStatus.SetMessage_(Index: Integer; const Astring: string); begin FMessage_ := Astring; FMessage__Specified := True; end; function pxStatus.Message__Specified(Index: Integer): boolean; begin Result := FMessage__Specified; end; procedure pxStatus.SetInternalMessage(Index: Integer; const Astring: string); begin FInternalMessage := Astring; FInternalMessage_Specified := True; end; function pxStatus.InternalMessage_Specified(Index: Integer): boolean; begin Result := FInternalMessage_Specified; end; procedure pxStatus.SetData(Index: Integer; const Astring: string); begin FData := Astring; FData_Specified := True; end; function pxStatus.Data_Specified(Index: Integer): boolean; begin Result := FData_Specified; end; procedure pxLogIn.SetSessionKey(Index: Integer; const Astring: string); begin FSessionKey := Astring; FSessionKey_Specified := True; end; function pxLogIn.SessionKey_Specified(Index: Integer): boolean; begin Result := FSessionKey_Specified; end; procedure pxLogIn.SetToegangID(Index: Integer; const Astring: string); begin FToegangID := Astring; FToegangID_Specified := True; end; function pxLogIn.ToegangID_Specified(Index: Integer): boolean; begin Result := FToegangID_Specified; end; procedure pxLogIn.SetGebruikersNaam(Index: Integer; const Astring: string); begin FGebruikersNaam := Astring; FGebruikersNaam_Specified := True; end; function pxLogIn.GebruikersNaam_Specified(Index: Integer): boolean; begin Result := FGebruikersNaam_Specified; end; procedure pxLogIn.SetSettings(Index: Integer; const Astring: string); begin FSettings := Astring; FSettings_Specified := True; end; function pxLogIn.Settings_Specified(Index: Integer): boolean; begin Result := FSettings_Specified; end; procedure pxLogIn.SetInDevelop(Index: Integer; const ABoolean: Boolean); begin FInDevelop := ABoolean; FInDevelop_Specified := True; end; function pxLogIn.InDevelop_Specified(Index: Integer): boolean; begin Result := FInDevelop_Specified; end; procedure pxLogIn.SetServerName(Index: Integer; const Astring: string); begin FServerName := Astring; FServerName_Specified := True; end; function pxLogIn.ServerName_Specified(Index: Integer): boolean; begin Result := FServerName_Specified; end; initialization { UserServerSoap } InvRegistry.RegisterInterface(TypeInfo(UserServerSoap), 'http://vhintra.vanhoecke.be', 'UTF-8'); InvRegistry.RegisterDefaultSOAPAction(TypeInfo(UserServerSoap), 'http://vhintra.vanhoecke.be/WS.Sys.Toegang.UserServer.%operationName%'); InvRegistry.RegisterInvokeOptions(TypeInfo(UserServerSoap), ioDocument); { UserServerSoap.LogIn } InvRegistry.RegisterMethodInfo(TypeInfo(UserServerSoap), 'LogIn', '', '[ReturnName="LogInResult"]'); InvRegistry.RegisterParamInfo(TypeInfo(UserServerSoap), 'LogIn', 'Application_', 'Application', ''); { UserServerSoap.LogOut } InvRegistry.RegisterMethodInfo(TypeInfo(UserServerSoap), 'LogOut', '', '[ReturnName="LogOutResult"]'); RemClassRegistry.RegisterXSClass(pxStatus, 'http://vhintra.vanhoecke.be', 'pxStatus'); RemClassRegistry.RegisterExternalPropName(TypeInfo(pxStatus), 'Message_', '[ExtName="Message"]'); RemClassRegistry.RegisterXSClass(pxLogIn, 'http://vhintra.vanhoecke.be', 'pxLogIn'); end.