// AANGEPASTE VERSIE VAN GEGENEREERD // ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://cacheaccept2010:57772/csp/dev1/WS.Prod.Select.CLS?WSDL=1 // >Import : http://cacheaccept2010:57772/csp/dev1/WS.Prod.Select.CLS?WSDL=1>0 // Encoding : UTF-8 // Codegen : [wfUnwindLiteralParameters-, wfOutputLiteralTypes+] // Version : 1.0 // (6/08/2021 11:30:44 - - $Rev: 45757 $) // ************************************************************************ // unit SelectService; 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. // ************************************************************************ // // !:boolean - "http://www.w3.org/2001/XMLSchema"[Gbl] // !:string - "http://www.w3.org/2001/XMLSchema"[Gbl] // !:long - "http://www.w3.org/2001/XMLSchema"[Gbl] SelectResponse = class; { "http://vhintra.vanhoecke.be"[GblElm] } Select = class; { "http://vhintra.vanhoecke.be"[GblElm] } pxStatus = class; { "http://vhintra.vanhoecke.be"[GblCplx] } anyType = class; { "http://vhintra.vanhoecke.be"[GblCplx] } pxSelectCriteria = class; { "http://vhintra.vanhoecke.be"[GblCplx] } // ************************************************************************ // // XML : SelectResponse, global, // Namespace : http://vhintra.vanhoecke.be // ************************************************************************ // SelectResponse = class(TRemotable) private FSelectResult: pxStatus; FvarDataSet: string; FvarDataSet_Specified: boolean; procedure SetvarDataSet(Index: Integer; const AanyType: string); function varDataSet_Specified(Index: Integer): boolean; public destructor Destroy; override; published property SelectResult: pxStatus read FSelectResult write FSelectResult; property varDataSet: string Index (IS_OPTN) read FvarDataSet write SetvarDataSet stored varDataSet_Specified; end; // ************************************************************************ // // XML : Select, global, // Namespace : http://vhintra.vanhoecke.be // ************************************************************************ // Select = class(TRemotable) private FSessionKey: string; FSessionKey_Specified: boolean; FCriteria: pxSelectCriteria; FCriteria_Specified: boolean; FvarDataSet: string; FvarDataSet_Specified: boolean; procedure SetSessionKey(Index: Integer; const Astring: string); function SessionKey_Specified(Index: Integer): boolean; procedure SetCriteria(Index: Integer; const ApxSelectCriteria: pxSelectCriteria); function Criteria_Specified(Index: Integer): boolean; procedure SetvarDataSet(Index: Integer; const AanyType: string); function varDataSet_Specified(Index: Integer): boolean; public destructor Destroy; override; published property SessionKey: string Index (IS_OPTN) read FSessionKey write SetSessionKey stored SessionKey_Specified; property Criteria: pxSelectCriteria Index (IS_OPTN) read FCriteria write SetCriteria stored Criteria_Specified; property varDataSet: string Index (IS_OPTN) read FvarDataSet write SetvarDataSet stored varDataSet_Specified; end; // ************************************************************************ // // 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 : anyType, global, // Namespace : http://vhintra.vanhoecke.be // ************************************************************************ // anyType = class(TRemotable) private published end; // ************************************************************************ // // XML : pxSelectCriteria, global, // Namespace : http://vhintra.vanhoecke.be // ************************************************************************ // pxSelectCriteria = class(TRemotable) private FStockType: string; FStockType_Specified: boolean; FActief: string; FActief_Specified: boolean; FKLNr: string; FKLNr_Specified: boolean; FLevNr: string; FLevNr_Specified: boolean; FZoek: string; FZoek_Specified: boolean; FAt: string; FAt_Specified: boolean; FSubAt: string; FSubAt_Specified: boolean; FFormatCompact: string; FFormatCompact_Specified: boolean; FFormatExpand: string; FFormatExpand_Specified: boolean; FLijnMax: Int64; FLijnMax_Specified: boolean; procedure SetStockType(Index: Integer; const Astring: string); function StockType_Specified(Index: Integer): boolean; procedure SetActief(Index: Integer; const Astring: string); function Actief_Specified(Index: Integer): boolean; procedure SetKLNr(Index: Integer; const Astring: string); function KLNr_Specified(Index: Integer): boolean; procedure SetLevNr(Index: Integer; const Astring: string); function LevNr_Specified(Index: Integer): boolean; procedure SetZoek(Index: Integer; const Astring: string); function Zoek_Specified(Index: Integer): boolean; procedure SetAt(Index: Integer; const Astring: string); function At_Specified(Index: Integer): boolean; procedure SetSubAt(Index: Integer; const Astring: string); function SubAt_Specified(Index: Integer): boolean; procedure SetFormatCompact(Index: Integer; const Astring: string); function FormatCompact_Specified(Index: Integer): boolean; procedure SetFormatExpand(Index: Integer; const Astring: string); function FormatExpand_Specified(Index: Integer): boolean; procedure SetLijnMax(Index: Integer; const AInt64: Int64); function LijnMax_Specified(Index: Integer): boolean; published property StockType: string Index (IS_OPTN) read FStockType write SetStockType stored StockType_Specified; property Actief: string Index (IS_OPTN) read FActief write SetActief stored Actief_Specified; property KLNr: string Index (IS_OPTN) read FKLNr write SetKLNr stored KLNr_Specified; property LevNr: string Index (IS_OPTN) read FLevNr write SetLevNr stored LevNr_Specified; property Zoek: string Index (IS_OPTN) read FZoek write SetZoek stored Zoek_Specified; property At: string Index (IS_OPTN) read FAt write SetAt stored At_Specified; property SubAt: string Index (IS_OPTN) read FSubAt write SetSubAt stored SubAt_Specified; property FormatCompact: string Index (IS_OPTN) read FFormatCompact write SetFormatCompact stored FormatCompact_Specified; property FormatExpand: string Index (IS_OPTN) read FFormatExpand write SetFormatExpand stored FormatExpand_Specified; property LijnMax: Int64 Index (IS_OPTN) read FLijnMax write SetLijnMax stored LijnMax_Specified; end; // ************************************************************************ // // Namespace : http://vhintra.vanhoecke.be // soapAction: http://vhintra.vanhoecke.be/WS.Prod.Select.Select // transport : http://schemas.xmlsoap.org/soap/http // style : document // use : literal // binding : ProdSelectServerSoap // service : ProdSelectServer // port : ProdSelectServerSoap // URL : http://cacheaccept2010:57772/csp/dev1/WS.Prod.Select.cls // ************************************************************************ // ProdSelectServerSoap = interface(IInvokable) ['{94F84166-EBC8-EA46-AC2B-CB77654909FA}'] function Select(const parameters: Select): SelectResponse; stdcall; end; function GetProdSelectServerSoap(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): ProdSelectServerSoap; implementation uses SysUtils; function GetProdSelectServerSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): ProdSelectServerSoap; const defWSDL = 'http://cacheaccept2010:57772/csp/dev1/WS.Prod.Select.CLS?WSDL=1'; defURL = 'http://cacheaccept2010:57772/csp/dev1/WS.Prod.Select.cls'; defSvc = 'ProdSelectServer'; defPrt = 'ProdSelectServerSoap'; 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 ProdSelectServerSoap); 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; destructor SelectResponse.Destroy; begin SysUtils.FreeAndNil(FSelectResult); SysUtils.FreeAndNil(FvarDataSet); inherited Destroy; end; procedure SelectResponse.SetvarDataSet(Index: Integer; const AanyType: string); begin FvarDataSet := AanyType; FvarDataSet_Specified := True; end; function SelectResponse.varDataSet_Specified(Index: Integer): boolean; begin Result := FvarDataSet_Specified; end; destructor Select.Destroy; begin SysUtils.FreeAndNil(FCriteria); SysUtils.FreeAndNil(FvarDataSet); inherited Destroy; end; procedure Select.SetSessionKey(Index: Integer; const Astring: string); begin FSessionKey := Astring; FSessionKey_Specified := True; end; function Select.SessionKey_Specified(Index: Integer): boolean; begin Result := FSessionKey_Specified; end; procedure Select.SetCriteria(Index: Integer; const ApxSelectCriteria: pxSelectCriteria); begin FCriteria := ApxSelectCriteria; FCriteria_Specified := True; end; function Select.Criteria_Specified(Index: Integer): boolean; begin Result := FCriteria_Specified; end; procedure Select.SetvarDataSet(Index: Integer; const AanyType: string); begin FvarDataSet := AanyType; FvarDataSet_Specified := True; end; function Select.varDataSet_Specified(Index: Integer): boolean; begin Result := FvarDataSet_Specified; 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 pxSelectCriteria.SetStockType(Index: Integer; const Astring: string); begin FStockType := Astring; FStockType_Specified := True; end; function pxSelectCriteria.StockType_Specified(Index: Integer): boolean; begin Result := FStockType_Specified; end; procedure pxSelectCriteria.SetActief(Index: Integer; const Astring: string); begin FActief := Astring; FActief_Specified := True; end; function pxSelectCriteria.Actief_Specified(Index: Integer): boolean; begin Result := FActief_Specified; end; procedure pxSelectCriteria.SetKLNr(Index: Integer; const Astring: string); begin FKLNr := Astring; FKLNr_Specified := True; end; function pxSelectCriteria.KLNr_Specified(Index: Integer): boolean; begin Result := FKLNr_Specified; end; procedure pxSelectCriteria.SetLevNr(Index: Integer; const Astring: string); begin FLevNr := Astring; FLevNr_Specified := True; end; function pxSelectCriteria.LevNr_Specified(Index: Integer): boolean; begin Result := FLevNr_Specified; end; procedure pxSelectCriteria.SetZoek(Index: Integer; const Astring: string); begin FZoek := Astring; FZoek_Specified := True; end; function pxSelectCriteria.Zoek_Specified(Index: Integer): boolean; begin Result := FZoek_Specified; end; procedure pxSelectCriteria.SetAt(Index: Integer; const Astring: string); begin FAt := Astring; FAt_Specified := True; end; function pxSelectCriteria.At_Specified(Index: Integer): boolean; begin Result := FAt_Specified; end; procedure pxSelectCriteria.SetSubAt(Index: Integer; const Astring: string); begin FSubAt := Astring; FSubAt_Specified := True; end; function pxSelectCriteria.SubAt_Specified(Index: Integer): boolean; begin Result := FSubAt_Specified; end; procedure pxSelectCriteria.SetFormatCompact(Index: Integer; const Astring: string); begin FFormatCompact := Astring; FFormatCompact_Specified := True; end; function pxSelectCriteria.FormatCompact_Specified(Index: Integer): boolean; begin Result := FFormatCompact_Specified; end; procedure pxSelectCriteria.SetFormatExpand(Index: Integer; const Astring: string); begin FFormatExpand := Astring; FFormatExpand_Specified := True; end; function pxSelectCriteria.FormatExpand_Specified(Index: Integer): boolean; begin Result := FFormatExpand_Specified; end; procedure pxSelectCriteria.SetLijnMax(Index: Integer; const AInt64: Int64); begin FLijnMax := AInt64; FLijnMax_Specified := True; end; function pxSelectCriteria.LijnMax_Specified(Index: Integer): boolean; begin Result := FLijnMax_Specified; end; initialization { ProdSelectServerSoap } InvRegistry.RegisterInterface(TypeInfo(ProdSelectServerSoap), 'http://vhintra.vanhoecke.be', 'UTF-8'); InvRegistry.RegisterDefaultSOAPAction(TypeInfo(ProdSelectServerSoap), 'http://vhintra.vanhoecke.be/WS.Prod.Select.Select'); InvRegistry.RegisterInvokeOptions(TypeInfo(ProdSelectServerSoap), ioDocument); InvRegistry.RegisterInvokeOptions(TypeInfo(ProdSelectServerSoap), ioLiteral); RemClassRegistry.RegisterXSClass(SelectResponse, 'http://vhintra.vanhoecke.be', 'SelectResponse'); RemClassRegistry.RegisterXSClass(Select, 'http://vhintra.vanhoecke.be', 'Select'); RemClassRegistry.RegisterXSClass(pxStatus, 'http://vhintra.vanhoecke.be', 'pxStatus'); RemClassRegistry.RegisterExternalPropName(TypeInfo(pxStatus), 'Message_', '[ExtName="Message"]'); RemClassRegistry.RegisterXSClass(anyType, 'http://vhintra.vanhoecke.be', 'anyType'); RemClassRegistry.RegisterXSClass(pxSelectCriteria, 'http://vhintra.vanhoecke.be', 'pxSelectCriteria'); end.