dobra.
Kopiuj
unit Sledzenie;
interface
uses Soap.InvokeRegistry, Soap.SOAPHTTPClient, System.Types, Soap.XSBuiltIns;
const
IS_OPTN = $0001;
IS_UNBD = $0002;
IS_NLBL = $0004;
IS_REF = $0080;
type
GodzinyPracy = class;
Jednostka = class;
Zdarzenie = class;
GodzinyZUwagami = class;
Przyczyna = class;
SzczDaneJednostki = class;
Komunikat = class;
Przesylka = class;
DanePrzesylki = class;
ListaZdarzen = array of Zdarzenie;
GodzinyPracy = class(TRemotable)
private
FdniRobocze: GodzinyZUwagami;
FdniRobocze_Specified: boolean;
FniedzISw: GodzinyZUwagami;
FniedzISw_Specified: boolean;
Fsoboty: GodzinyZUwagami;
Fsoboty_Specified: boolean;
procedure SetdniRobocze(Index: Integer; const AGodzinyZUwagami: GodzinyZUwagami);
function dniRobocze_Specified(Index: Integer): boolean;
procedure SetniedzISw(Index: Integer; const AGodzinyZUwagami: GodzinyZUwagami);
function niedzISw_Specified(Index: Integer): boolean;
procedure Setsoboty(Index: Integer; const AGodzinyZUwagami: GodzinyZUwagami);
function soboty_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
published
property dniRobocze: GodzinyZUwagami Index (IS_OPTN or IS_NLBL) read FdniRobocze write SetdniRobocze stored dniRobocze_Specified;
property niedzISw: GodzinyZUwagami Index (IS_OPTN or IS_NLBL) read FniedzISw write SetniedzISw stored niedzISw_Specified;
property soboty: GodzinyZUwagami Index (IS_OPTN or IS_NLBL) read Fsoboty write Setsoboty stored soboty_Specified;
end;
ListaPrzesylek = array of Przesylka;
Jednostka = class(TRemotable)
private
FdaneSzczegolowe: SzczDaneJednostki;
FdaneSzczegolowe_Specified: boolean;
Fnazwa: string;
Fnazwa_Specified: boolean;
procedure SetdaneSzczegolowe(Index: Integer; const ASzczDaneJednostki: SzczDaneJednostki);
function daneSzczegolowe_Specified(Index: Integer): boolean;
procedure Setnazwa(Index: Integer; const Astring: string);
function nazwa_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
published
property daneSzczegolowe: SzczDaneJednostki Index (IS_OPTN or IS_NLBL) read FdaneSzczegolowe write SetdaneSzczegolowe stored daneSzczegolowe_Specified;
property nazwa: string Index (IS_OPTN or IS_NLBL) read Fnazwa write Setnazwa stored nazwa_Specified;
end;
Zdarzenie = class(TRemotable)
private
Fczas: string;
Fczas_Specified: boolean;
Fjednostka: Jednostka;
Fjednostka_Specified: boolean;
Fkod: string;
Fkod_Specified: boolean;
Fkonczace: Boolean;
Fkonczace_Specified: boolean;
Fnazwa: string;
Fnazwa_Specified: boolean;
Fprzyczyna: Przyczyna;
Fprzyczyna_Specified: boolean;
procedure Setczas(Index: Integer; const Astring: string);
function czas_Specified(Index: Integer): boolean;
procedure Setjednostka(Index: Integer; const AJednostka: Jednostka);
function jednostka_Specified(Index: Integer): boolean;
procedure Setkod(Index: Integer; const Astring: string);
function kod_Specified(Index: Integer): boolean;
procedure Setkonczace(Index: Integer; const ABoolean: Boolean);
function konczace_Specified(Index: Integer): boolean;
procedure Setnazwa(Index: Integer; const Astring: string);
function nazwa_Specified(Index: Integer): boolean;
procedure Setprzyczyna(Index: Integer; const APrzyczyna: Przyczyna);
function przyczyna_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
published
property czas: string Index (IS_OPTN or IS_NLBL) read Fczas write Setczas stored czas_Specified;
property jednostka: Jednostka Index (IS_OPTN or IS_NLBL) read Fjednostka write Setjednostka stored jednostka_Specified;
property kod: string Index (IS_OPTN or IS_NLBL) read Fkod write Setkod stored kod_Specified;
property konczace: Boolean Index (IS_OPTN) read Fkonczace write Setkonczace stored konczace_Specified;
property nazwa: string Index (IS_OPTN or IS_NLBL) read Fnazwa write Setnazwa stored nazwa_Specified;
property przyczyna: Przyczyna Index (IS_OPTN or IS_NLBL) read Fprzyczyna write Setprzyczyna stored przyczyna_Specified;
end;
GodzinyZUwagami = class(TRemotable)
private
Fgodziny: string;
Fgodziny_Specified: boolean;
Fuwagi: string;
Fuwagi_Specified: boolean;
procedure Setgodziny(Index: Integer; const Astring: string);
function godziny_Specified(Index: Integer): boolean;
procedure Setuwagi(Index: Integer; const Astring: string);
function uwagi_Specified(Index: Integer): boolean;
published
property godziny: string Index (IS_OPTN or IS_NLBL) read Fgodziny write Setgodziny stored godziny_Specified;
property uwagi: string Index (IS_OPTN or IS_NLBL) read Fuwagi write Setuwagi stored uwagi_Specified;
end;
Przyczyna = class(TRemotable)
private
Fkod: string;
Fkod_Specified: boolean;
Fnazwa: string;
Fnazwa_Specified: boolean;
procedure Setkod(Index: Integer; const Astring: string);
function kod_Specified(Index: Integer): boolean;
procedure Setnazwa(Index: Integer; const Astring: string);
function nazwa_Specified(Index: Integer): boolean;
published
property kod: string Index (IS_OPTN or IS_NLBL) read Fkod write Setkod stored kod_Specified;
property nazwa: string Index (IS_OPTN or IS_NLBL) read Fnazwa write Setnazwa stored nazwa_Specified;
end;
sprawdzPrzesylki = array of string;
SzczDaneJednostki = class(TRemotable)
private
FdlGeogr: Single;
FdlGeogr_Specified: boolean;
FgodzinyPracy: GodzinyPracy;
FgodzinyPracy_Specified: boolean;
Fmiejscowosc: string;
Fmiejscowosc_Specified: boolean;
FnrDomu: string;
FnrDomu_Specified: boolean;
FnrLokalu: string;
FnrLokalu_Specified: boolean;
Fpna: string;
Fpna_Specified: boolean;
FszerGeogr: Single;
FszerGeogr_Specified: boolean;
Fulica: string;
Fulica_Specified: boolean;
procedure SetdlGeogr(Index: Integer; const ASingle: Single);
function dlGeogr_Specified(Index: Integer): boolean;
procedure SetgodzinyPracy(Index: Integer; const AGodzinyPracy: GodzinyPracy);
function godzinyPracy_Specified(Index: Integer): boolean;
procedure Setmiejscowosc(Index: Integer; const Astring: string);
function miejscowosc_Specified(Index: Integer): boolean;
procedure SetnrDomu(Index: Integer; const Astring: string);
function nrDomu_Specified(Index: Integer): boolean;
procedure SetnrLokalu(Index: Integer; const Astring: string);
function nrLokalu_Specified(Index: Integer): boolean;
procedure Setpna(Index: Integer; const Astring: string);
function pna_Specified(Index: Integer): boolean;
procedure SetszerGeogr(Index: Integer; const ASingle: Single);
function szerGeogr_Specified(Index: Integer): boolean;
procedure Setulica(Index: Integer; const Astring: string);
function ulica_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
published
property dlGeogr: Single Index (IS_OPTN) read FdlGeogr write SetdlGeogr stored dlGeogr_Specified;
property godzinyPracy: GodzinyPracy Index (IS_OPTN or IS_NLBL) read FgodzinyPracy write SetgodzinyPracy stored godzinyPracy_Specified;
property miejscowosc: string Index (IS_OPTN or IS_NLBL) read Fmiejscowosc write Setmiejscowosc stored miejscowosc_Specified;
property nrDomu: string Index (IS_OPTN or IS_NLBL) read FnrDomu write SetnrDomu stored nrDomu_Specified;
property nrLokalu: string Index (IS_OPTN or IS_NLBL) read FnrLokalu write SetnrLokalu stored nrLokalu_Specified;
property pna: string Index (IS_OPTN or IS_NLBL) read Fpna write Setpna stored pna_Specified;
property szerGeogr: Single Index (IS_OPTN) read FszerGeogr write SetszerGeogr stored szerGeogr_Specified;
property ulica: string Index (IS_OPTN or IS_NLBL) read Fulica write Setulica stored ulica_Specified;
end;
Komunikat = class(TRemotable)
private
Fprzesylki: ListaPrzesylek;
Fprzesylki_Specified: boolean;
Fstatus: Integer;
Fstatus_Specified: boolean;
procedure Setprzesylki(Index: Integer; const AListaPrzesylek: ListaPrzesylek);
function przesylki_Specified(Index: Integer): boolean;
procedure Setstatus(Index: Integer; const AInteger: Integer);
function status_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
published
property przesylki: ListaPrzesylek Index (IS_OPTN or IS_NLBL) read Fprzesylki write Setprzesylki stored przesylki_Specified;
property status: Integer Index (IS_OPTN) read Fstatus write Setstatus stored status_Specified;
end;
Przesylka = class(TRemotable)
private
FdanePrzesylki: DanePrzesylki;
FdanePrzesylki_Specified: boolean;
Fnumer: string;
Fnumer_Specified: boolean;
Fstatus: Integer;
Fstatus_Specified: boolean;
procedure SetdanePrzesylki(Index: Integer; const ADanePrzesylki: DanePrzesylki);
function danePrzesylki_Specified(Index: Integer): boolean;
procedure Setnumer(Index: Integer; const Astring: string);
function numer_Specified(Index: Integer): boolean;
procedure Setstatus(Index: Integer; const AInteger: Integer);
function status_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
published
property danePrzesylki: DanePrzesylki Index (IS_OPTN or IS_NLBL) read FdanePrzesylki write SetdanePrzesylki stored danePrzesylki_Specified;
property numer: string Index (IS_OPTN or IS_NLBL) read Fnumer write Setnumer stored numer_Specified;
property status: Integer Index (IS_OPTN) read Fstatus write Setstatus stored status_Specified;
end;
DanePrzesylki = class(TRemotable)
private
FdataNadania: TXSDate;
FdataNadania_Specified: boolean;
FkodKrajuNadania: string;
FkodKrajuNadania_Specified: boolean;
FkodKrajuPrzezn: string;
FkodKrajuPrzezn_Specified: boolean;
FkodRodzPrzes: string;
FkodRodzPrzes_Specified: boolean;
FkrajNadania: string;
FkrajNadania_Specified: boolean;
FkrajPrzezn: string;
FkrajPrzezn_Specified: boolean;
Fmasa: Single;
Fmasa_Specified: boolean;
Fnumer: string;
Fnumer_Specified: boolean;
FrodzPrzes: string;
FrodzPrzes_Specified: boolean;
FurzadNadania: Jednostka;
FurzadNadania_Specified: boolean;
FurzadPrzezn: Jednostka;
FurzadPrzezn_Specified: boolean;
FzakonczonoObsluge: Boolean;
FzakonczonoObsluge_Specified: boolean;
Fzdarzenia: ListaZdarzen;
Fzdarzenia_Specified: boolean;
procedure SetdataNadania(Index: Integer; const ATXSDate: TXSDate);
function dataNadania_Specified(Index: Integer): boolean;
procedure SetkodKrajuNadania(Index: Integer; const Astring: string);
function kodKrajuNadania_Specified(Index: Integer): boolean;
procedure SetkodKrajuPrzezn(Index: Integer; const Astring: string);
function kodKrajuPrzezn_Specified(Index: Integer): boolean;
procedure SetkodRodzPrzes(Index: Integer; const Astring: string);
function kodRodzPrzes_Specified(Index: Integer): boolean;
procedure SetkrajNadania(Index: Integer; const Astring: string);
function krajNadania_Specified(Index: Integer): boolean;
procedure SetkrajPrzezn(Index: Integer; const Astring: string);
function krajPrzezn_Specified(Index: Integer): boolean;
procedure Setmasa(Index: Integer; const ASingle: Single);
function masa_Specified(Index: Integer): boolean;
procedure Setnumer(Index: Integer; const Astring: string);
function numer_Specified(Index: Integer): boolean;
procedure SetrodzPrzes(Index: Integer; const Astring: string);
function rodzPrzes_Specified(Index: Integer): boolean;
procedure SeturzadNadania(Index: Integer; const AJednostka: Jednostka);
function urzadNadania_Specified(Index: Integer): boolean;
procedure SeturzadPrzezn(Index: Integer; const AJednostka: Jednostka);
function urzadPrzezn_Specified(Index: Integer): boolean;
procedure SetzakonczonoObsluge(Index: Integer; const ABoolean: Boolean);
function zakonczonoObsluge_Specified(Index: Integer): boolean;
procedure Setzdarzenia(Index: Integer; const AListaZdarzen: ListaZdarzen);
function zdarzenia_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
published
property dataNadania: TXSDate Index (IS_OPTN or IS_NLBL) read FdataNadania write SetdataNadania stored dataNadania_Specified;
property kodKrajuNadania: string Index (IS_OPTN or IS_NLBL) read FkodKrajuNadania write SetkodKrajuNadania stored kodKrajuNadania_Specified;
property kodKrajuPrzezn: string Index (IS_OPTN or IS_NLBL) read FkodKrajuPrzezn write SetkodKrajuPrzezn stored kodKrajuPrzezn_Specified;
property kodRodzPrzes: string Index (IS_OPTN or IS_NLBL) read FkodRodzPrzes write SetkodRodzPrzes stored kodRodzPrzes_Specified;
property krajNadania: string Index (IS_OPTN or IS_NLBL) read FkrajNadania write SetkrajNadania stored krajNadania_Specified;
property krajPrzezn: string Index (IS_OPTN or IS_NLBL) read FkrajPrzezn write SetkrajPrzezn stored krajPrzezn_Specified;
property masa: Single Index (IS_OPTN or IS_NLBL) read Fmasa write Setmasa stored masa_Specified;
property numer: string Index (IS_OPTN or IS_NLBL) read Fnumer write Setnumer stored numer_Specified;
property rodzPrzes: string Index (IS_OPTN or IS_NLBL) read FrodzPrzes write SetrodzPrzes stored rodzPrzes_Specified;
property urzadNadania: Jednostka Index (IS_OPTN or IS_NLBL) read FurzadNadania write SeturzadNadania stored urzadNadania_Specified;
property urzadPrzezn: Jednostka Index (IS_OPTN or IS_NLBL) read FurzadPrzezn write SeturzadPrzezn stored urzadPrzezn_Specified;
property zakonczonoObsluge: Boolean Index (IS_OPTN) read FzakonczonoObsluge write SetzakonczonoObsluge stored zakonczonoObsluge_Specified;
property zdarzenia: ListaZdarzen Index (IS_OPTN or IS_NLBL) read Fzdarzenia write Setzdarzenia stored zdarzenia_Specified;
end;
SledzeniePortType = interface(IInvokable)
['{8C0B419F-11EA-387F-DE46-CA42E76E4747}']
function wersja: string; stdcall;
function sprawdzPrzesylkiPl(const numer: sprawdzPrzesylki): Komunikat; stdcall;
function sprawdzPrzesylkePl(const numer: string): Przesylka; stdcall;
function sprawdzPrzesylkiOdDo(const numer: sprawdzPrzesylki; const odDnia: string; const doDnia: string): Komunikat; stdcall;
function maksymalnaLiczbaPrzesylek: Integer; stdcall;
function sprawdzPrzesylke(const numer: string): Przesylka; stdcall;
function sprawdzPrzesylkiOdDoPl(const numer: sprawdzPrzesylki; const odDnia: string; const doDnia: string): Komunikat; stdcall;
function witaj(const imie: string): string; stdcall;
function sprawdzPrzesylki(const numer: sprawdzPrzesylki): Komunikat; stdcall;
end;
function GetSledzeniePortType(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): SledzeniePortType;
implementation
uses System.SysUtils;
function GetSledzeniePortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): SledzeniePortType;
const
defWSDL = 'https://tt.poczta-polska.pl/Sledzenie/services/Sledzenie?wsdl';
defURL = 'https://tt.poczta-polska.pl/Sledzenie/services/Sledzenie.SledzenieHttpSoap11Endpoint/';
defSvc = 'Sledzenie';
defPrt = 'SledzenieHttpSoap11Endpoint';
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 SledzeniePortType);
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 GodzinyPracy.Destroy;
begin
System.SysUtils.FreeAndNil(FdniRobocze);
System.SysUtils.FreeAndNil(FniedzISw);
System.SysUtils.FreeAndNil(Fsoboty);
inherited Destroy;
end;
procedure GodzinyPracy.SetdniRobocze(Index: Integer; const AGodzinyZUwagami: GodzinyZUwagami);
begin
FdniRobocze := AGodzinyZUwagami;
FdniRobocze_Specified := True;
end;
function GodzinyPracy.dniRobocze_Specified(Index: Integer): boolean;
begin
Result := FdniRobocze_Specified;
end;
procedure GodzinyPracy.SetniedzISw(Index: Integer; const AGodzinyZUwagami: GodzinyZUwagami);
begin
FniedzISw := AGodzinyZUwagami;
FniedzISw_Specified := True;
end;
function GodzinyPracy.niedzISw_Specified(Index: Integer): boolean;
begin
Result := FniedzISw_Specified;
end;
procedure GodzinyPracy.Setsoboty(Index: Integer; const AGodzinyZUwagami: GodzinyZUwagami);
begin
Fsoboty := AGodzinyZUwagami;
Fsoboty_Specified := True;
end;
function GodzinyPracy.soboty_Specified(Index: Integer): boolean;
begin
Result := Fsoboty_Specified;
end;
destructor Jednostka.Destroy;
begin
System.SysUtils.FreeAndNil(FdaneSzczegolowe);
inherited Destroy;
end;
procedure Jednostka.SetdaneSzczegolowe(Index: Integer; const ASzczDaneJednostki: SzczDaneJednostki);
begin
FdaneSzczegolowe := ASzczDaneJednostki;
FdaneSzczegolowe_Specified := True;
end;
function Jednostka.daneSzczegolowe_Specified(Index: Integer): boolean;
begin
Result := FdaneSzczegolowe_Specified;
end;
procedure Jednostka.Setnazwa(Index: Integer; const Astring: string);
begin
Fnazwa := Astring;
Fnazwa_Specified := True;
end;
function Jednostka.nazwa_Specified(Index: Integer): boolean;
begin
Result := Fnazwa_Specified;
end;
destructor Zdarzenie.Destroy;
begin
System.SysUtils.FreeAndNil(Fjednostka);
System.SysUtils.FreeAndNil(Fprzyczyna);
inherited Destroy;
end;
procedure Zdarzenie.Setczas(Index: Integer; const Astring: string);
begin
Fczas := Astring;
Fczas_Specified := True;
end;
function Zdarzenie.czas_Specified(Index: Integer): boolean;
begin
Result := Fczas_Specified;
end;
procedure Zdarzenie.Setjednostka(Index: Integer; const AJednostka: Jednostka);
begin
Fjednostka := AJednostka;
Fjednostka_Specified := True;
end;
function Zdarzenie.jednostka_Specified(Index: Integer): boolean;
begin
Result := Fjednostka_Specified;
end;
procedure Zdarzenie.Setkod(Index: Integer; const Astring: string);
begin
Fkod := Astring;
Fkod_Specified := True;
end;
function Zdarzenie.kod_Specified(Index: Integer): boolean;
begin
Result := Fkod_Specified;
end;
procedure Zdarzenie.Setkonczace(Index: Integer; const ABoolean: Boolean);
begin
Fkonczace := ABoolean;
Fkonczace_Specified := True;
end;
function Zdarzenie.konczace_Specified(Index: Integer): boolean;
begin
Result := Fkonczace_Specified;
end;
procedure Zdarzenie.Setnazwa(Index: Integer; const Astring: string);
begin
Fnazwa := Astring;
Fnazwa_Specified := True;
end;
function Zdarzenie.nazwa_Specified(Index: Integer): boolean;
begin
Result := Fnazwa_Specified;
end;
procedure Zdarzenie.Setprzyczyna(Index: Integer; const APrzyczyna: Przyczyna);
begin
Fprzyczyna := APrzyczyna;
Fprzyczyna_Specified := True;
end;
function Zdarzenie.przyczyna_Specified(Index: Integer): boolean;
begin
Result := Fprzyczyna_Specified;
end;
procedure GodzinyZUwagami.Setgodziny(Index: Integer; const Astring: string);
begin
Fgodziny := Astring;
Fgodziny_Specified := True;
end;
function GodzinyZUwagami.godziny_Specified(Index: Integer): boolean;
begin
Result := Fgodziny_Specified;
end;
procedure GodzinyZUwagami.Setuwagi(Index: Integer; const Astring: string);
begin
Fuwagi := Astring;
Fuwagi_Specified := True;
end;
function GodzinyZUwagami.uwagi_Specified(Index: Integer): boolean;
begin
Result := Fuwagi_Specified;
end;
procedure Przyczyna.Setkod(Index: Integer; const Astring: string);
begin
Fkod := Astring;
Fkod_Specified := True;
end;
function Przyczyna.kod_Specified(Index: Integer): boolean;
begin
Result := Fkod_Specified;
end;
procedure Przyczyna.Setnazwa(Index: Integer; const Astring: string);
begin
Fnazwa := Astring;
Fnazwa_Specified := True;
end;
function Przyczyna.nazwa_Specified(Index: Integer): boolean;
begin
Result := Fnazwa_Specified;
end;
destructor SzczDaneJednostki.Destroy;
begin
System.SysUtils.FreeAndNil(FgodzinyPracy);
inherited Destroy;
end;
procedure SzczDaneJednostki.SetdlGeogr(Index: Integer; const ASingle: Single);
begin
FdlGeogr := ASingle;
FdlGeogr_Specified := True;
end;
function SzczDaneJednostki.dlGeogr_Specified(Index: Integer): boolean;
begin
Result := FdlGeogr_Specified;
end;
procedure SzczDaneJednostki.SetgodzinyPracy(Index: Integer; const AGodzinyPracy: GodzinyPracy);
begin
FgodzinyPracy := AGodzinyPracy;
FgodzinyPracy_Specified := True;
end;
function SzczDaneJednostki.godzinyPracy_Specified(Index: Integer): boolean;
begin
Result := FgodzinyPracy_Specified;
end;
procedure SzczDaneJednostki.Setmiejscowosc(Index: Integer; const Astring: string);
begin
Fmiejscowosc := Astring;
Fmiejscowosc_Specified := True;
end;
function SzczDaneJednostki.miejscowosc_Specified(Index: Integer): boolean;
begin
Result := Fmiejscowosc_Specified;
end;
procedure SzczDaneJednostki.SetnrDomu(Index: Integer; const Astring: string);
begin
FnrDomu := Astring;
FnrDomu_Specified := True;
end;
function SzczDaneJednostki.nrDomu_Specified(Index: Integer): boolean;
begin
Result := FnrDomu_Specified;
end;
procedure SzczDaneJednostki.SetnrLokalu(Index: Integer; const Astring: string);
begin
FnrLokalu := Astring;
FnrLokalu_Specified := True;
end;
function SzczDaneJednostki.nrLokalu_Specified(Index: Integer): boolean;
begin
Result := FnrLokalu_Specified;
end;
procedure SzczDaneJednostki.Setpna(Index: Integer; const Astring: string);
begin
Fpna := Astring;
Fpna_Specified := True;
end;
function SzczDaneJednostki.pna_Specified(Index: Integer): boolean;
begin
Result := Fpna_Specified;
end;
procedure SzczDaneJednostki.SetszerGeogr(Index: Integer; const ASingle: Single);
begin
FszerGeogr := ASingle;
FszerGeogr_Specified := True;
end;
function SzczDaneJednostki.szerGeogr_Specified(Index: Integer): boolean;
begin
Result := FszerGeogr_Specified;
end;
procedure SzczDaneJednostki.Setulica(Index: Integer; const Astring: string);
begin
Fulica := Astring;
Fulica_Specified := True;
end;
function SzczDaneJednostki.ulica_Specified(Index: Integer): boolean;
begin
Result := Fulica_Specified;
end;
destructor Komunikat.Destroy;
var
I: Integer;
begin
for I := 0 to System.Length(Fprzesylki)-1 do
System.SysUtils.FreeAndNil(Fprzesylki[I]);
System.SetLength(Fprzesylki, 0);
inherited Destroy;
end;
procedure Komunikat.Setprzesylki(Index: Integer; const AListaPrzesylek: ListaPrzesylek);
begin
Fprzesylki := AListaPrzesylek;
Fprzesylki_Specified := True;
end;
function Komunikat.przesylki_Specified(Index: Integer): boolean;
begin
Result := Fprzesylki_Specified;
end;
procedure Komunikat.Setstatus(Index: Integer; const AInteger: Integer);
begin
Fstatus := AInteger;
Fstatus_Specified := True;
end;
function Komunikat.status_Specified(Index: Integer): boolean;
begin
Result := Fstatus_Specified;
end;
destructor Przesylka.Destroy;
begin
System.SysUtils.FreeAndNil(FdanePrzesylki);
inherited Destroy;
end;
procedure Przesylka.SetdanePrzesylki(Index: Integer; const ADanePrzesylki: DanePrzesylki);
begin
FdanePrzesylki := ADanePrzesylki;
FdanePrzesylki_Specified := True;
end;
function Przesylka.danePrzesylki_Specified(Index: Integer): boolean;
begin
Result := FdanePrzesylki_Specified;
end;
procedure Przesylka.Setnumer(Index: Integer; const Astring: string);
begin
Fnumer := Astring;
Fnumer_Specified := True;
end;
function Przesylka.numer_Specified(Index: Integer): boolean;
begin
Result := Fnumer_Specified;
end;
procedure Przesylka.Setstatus(Index: Integer; const AInteger: Integer);
begin
Fstatus := AInteger;
Fstatus_Specified := True;
end;
function Przesylka.status_Specified(Index: Integer): boolean;
begin
Result := Fstatus_Specified;
end;
destructor DanePrzesylki.Destroy;
var
I: Integer;
begin
for I := 0 to System.Length(Fzdarzenia)-1 do
System.SysUtils.FreeAndNil(Fzdarzenia[I]);
System.SetLength(Fzdarzenia, 0);
System.SysUtils.FreeAndNil(FdataNadania);
System.SysUtils.FreeAndNil(FurzadNadania);
System.SysUtils.FreeAndNil(FurzadPrzezn);
inherited Destroy;
end;
procedure DanePrzesylki.SetdataNadania(Index: Integer; const ATXSDate: TXSDate);
begin
FdataNadania := ATXSDate;
FdataNadania_Specified := True;
end;
function DanePrzesylki.dataNadania_Specified(Index: Integer): boolean;
begin
Result := FdataNadania_Specified;
end;
procedure DanePrzesylki.SetkodKrajuNadania(Index: Integer; const Astring: string);
begin
FkodKrajuNadania := Astring;
FkodKrajuNadania_Specified := True;
end;
function DanePrzesylki.kodKrajuNadania_Specified(Index: Integer): boolean;
begin
Result := FkodKrajuNadania_Specified;
end;
procedure DanePrzesylki.SetkodKrajuPrzezn(Index: Integer; const Astring: string);
begin
FkodKrajuPrzezn := Astring;
FkodKrajuPrzezn_Specified := True;
end;
function DanePrzesylki.kodKrajuPrzezn_Specified(Index: Integer): boolean;
begin
Result := FkodKrajuPrzezn_Specified;
end;
procedure DanePrzesylki.SetkodRodzPrzes(Index: Integer; const Astring: string);
begin
FkodRodzPrzes := Astring;
FkodRodzPrzes_Specified := True;
end;
function DanePrzesylki.kodRodzPrzes_Specified(Index: Integer): boolean;
begin
Result := FkodRodzPrzes_Specified;
end;
procedure DanePrzesylki.SetkrajNadania(Index: Integer; const Astring: string);
begin
FkrajNadania := Astring;
FkrajNadania_Specified := True;
end;
function DanePrzesylki.krajNadania_Specified(Index: Integer): boolean;
begin
Result := FkrajNadania_Specified;
end;
procedure DanePrzesylki.SetkrajPrzezn(Index: Integer; const Astring: string);
begin
FkrajPrzezn := Astring;
FkrajPrzezn_Specified := True;
end;
function DanePrzesylki.krajPrzezn_Specified(Index: Integer): boolean;
begin
Result := FkrajPrzezn_Specified;
end;
procedure DanePrzesylki.Setmasa(Index: Integer; const ASingle: Single);
begin
Fmasa := ASingle;
Fmasa_Specified := True;
end;
function DanePrzesylki.masa_Specified(Index: Integer): boolean;
begin
Result := Fmasa_Specified;
end;
procedure DanePrzesylki.Setnumer(Index: Integer; const Astring: string);
begin
Fnumer := Astring;
Fnumer_Specified := True;
end;
function DanePrzesylki.numer_Specified(Index: Integer): boolean;
begin
Result := Fnumer_Specified;
end;
procedure DanePrzesylki.SetrodzPrzes(Index: Integer; const Astring: string);
begin
FrodzPrzes := Astring;
FrodzPrzes_Specified := True;
end;
function DanePrzesylki.rodzPrzes_Specified(Index: Integer): boolean;
begin
Result := FrodzPrzes_Specified;
end;
procedure DanePrzesylki.SeturzadNadania(Index: Integer; const AJednostka: Jednostka);
begin
FurzadNadania := AJednostka;
FurzadNadania_Specified := True;
end;
function DanePrzesylki.urzadNadania_Specified(Index: Integer): boolean;
begin
Result := FurzadNadania_Specified;
end;
procedure DanePrzesylki.SeturzadPrzezn(Index: Integer; const AJednostka: Jednostka);
begin
FurzadPrzezn := AJednostka;
FurzadPrzezn_Specified := True;
end;
function DanePrzesylki.urzadPrzezn_Specified(Index: Integer): boolean;
begin
Result := FurzadPrzezn_Specified;
end;
procedure DanePrzesylki.SetzakonczonoObsluge(Index: Integer; const ABoolean: Boolean);
begin
FzakonczonoObsluge := ABoolean;
FzakonczonoObsluge_Specified := True;
end;
function DanePrzesylki.zakonczonoObsluge_Specified(Index: Integer): boolean;
begin
Result := FzakonczonoObsluge_Specified;
end;
procedure DanePrzesylki.Setzdarzenia(Index: Integer; const AListaZdarzen: ListaZdarzen);
begin
Fzdarzenia := AListaZdarzen;
Fzdarzenia_Specified := True;
end;
function DanePrzesylki.zdarzenia_Specified(Index: Integer): boolean;
begin
Result := Fzdarzenia_Specified;
end;
initialization
InvRegistry.RegisterInterface(TypeInfo(SledzeniePortType), 'http://sledzenie.pocztapolska.pl', 'UTF-8');
InvRegistry.RegisterDefaultSOAPAction(TypeInfo(SledzeniePortType), 'urn:%operationName%');
InvRegistry.RegisterInvokeOptions(TypeInfo(SledzeniePortType), ioDocument);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'wersja', '',
'[ReturnName="return"]', IS_OPTN or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'wersja', 'return', '',
'', IS_NLBL);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiPl', '',
'[ReturnName="return"]', IS_OPTN or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiPl', 'numer', '',
'[ArrayItemName="numer"]', IS_UNBD or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiPl', 'return', '',
'[Namespace="http://ws.sledzenie.pocztapolska.pl/xsd"]', IS_NLBL);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkePl', '',
'[ReturnName="return"]', IS_OPTN or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkePl', 'numer', '',
'', IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkePl', 'return', '',
'[Namespace="http://ws.sledzenie.pocztapolska.pl/xsd"]', IS_NLBL);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDo', '',
'[ReturnName="return"]', IS_OPTN or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDo', 'numer', '',
'[ArrayItemName="numer"]', IS_UNBD or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDo', 'odDnia', '',
'', IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDo', 'doDnia', '',
'', IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDo', 'return', '',
'[Namespace="http://ws.sledzenie.pocztapolska.pl/xsd"]', IS_NLBL);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'maksymalnaLiczbaPrzesylek', '',
'[ReturnName="return"]', IS_OPTN);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylke', '',
'[ReturnName="return"]', IS_OPTN or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylke', 'numer', '',
'', IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylke', 'return', '',
'[Namespace="http://ws.sledzenie.pocztapolska.pl/xsd"]', IS_NLBL);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDoPl', '',
'[ReturnName="return"]', IS_OPTN or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDoPl', 'numer', '',
'[ArrayItemName="numer"]', IS_UNBD or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDoPl', 'odDnia', '',
'', IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDoPl', 'doDnia', '',
'', IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylkiOdDoPl', 'return', '',
'[Namespace="http://ws.sledzenie.pocztapolska.pl/xsd"]', IS_NLBL);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'witaj', '',
'[ReturnName="return"]', IS_OPTN or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'witaj', 'imie', '',
'', IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'witaj', 'return', '',
'', IS_NLBL);
InvRegistry.RegisterMethodInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylki', '',
'[ReturnName="return"]', IS_OPTN or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylki', 'numer', '',
'[ArrayItemName="numer"]', IS_UNBD or IS_NLBL);
InvRegistry.RegisterParamInfo(TypeInfo(SledzeniePortType), 'sprawdzPrzesylki', 'return', '',
'[Namespace="http://ws.sledzenie.pocztapolska.pl/xsd"]', IS_NLBL);
RemClassRegistry.RegisterXSInfo(TypeInfo(ListaZdarzen), 'http://ws.sledzenie.pocztapolska.pl/xsd', 'ListaZdarzen');
RemClassRegistry.RegisterXSClass(GodzinyPracy, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'GodzinyPracy');
RemClassRegistry.RegisterXSInfo(TypeInfo(ListaPrzesylek), 'http://ws.sledzenie.pocztapolska.pl/xsd', 'ListaPrzesylek');
RemClassRegistry.RegisterXSClass(Jednostka, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'Jednostka');
RemClassRegistry.RegisterXSClass(Zdarzenie, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'Zdarzenie');
RemClassRegistry.RegisterXSClass(GodzinyZUwagami, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'GodzinyZUwagami');
RemClassRegistry.RegisterXSClass(Przyczyna, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'Przyczyna');
RemClassRegistry.RegisterXSInfo(TypeInfo(sprawdzPrzesylki), 'http://sledzenie.pocztapolska.pl', 'sprawdzPrzesylki');
RemClassRegistry.RegisterXSClass(SzczDaneJednostki, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'SzczDaneJednostki');
RemClassRegistry.RegisterXSClass(Komunikat, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'Komunikat');
RemClassRegistry.RegisterExternalPropName(TypeInfo(Komunikat), 'przesylki', '[ArrayItemName="przesylka"]');
RemClassRegistry.RegisterXSClass(Przesylka, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'Przesylka');
RemClassRegistry.RegisterXSClass(DanePrzesylki, 'http://ws.sledzenie.pocztapolska.pl/xsd', 'DanePrzesylki');
RemClassRegistry.RegisterExternalPropName(TypeInfo(DanePrzesylki), 'zdarzenia', '[ArrayItemName="zdarzenie"]');
end.