davčne blagajne ZOI

Vsi vaši problemi s programsko opremo.
SimonG
Prispevkov: 84
Pridružen: 12.08.2002 01:04:31

davčne blagajne ZOI

OdgovorNapisal/-a SimonG » 23.09.2015 17:04:05

pozdravljeni !

V bistvu me zanima, če kdo ve, kje bi preveril ali je ustvarjen ZOI pravilen.
Vsak namig bo dober , pa lep dan še naprej...


lp simon...

riko
Prispevkov: 444
Pridružen: 25.02.2004 12:40:57

Re: davčne blagajne ZOI

OdgovorNapisal/-a riko » 24.09.2015 10:54:43

Tukaj boš dobil vse informacije.

SimonG
Prispevkov: 84
Pridružen: 12.08.2002 01:04:31

Re: davčne blagajne ZOI

OdgovorNapisal/-a SimonG » 24.09.2015 11:01:10

Pozdravljen !

sem prebral pravilnik itd, samo ne najdem primera z rešitvijo.
imam narejeno funkcijo ki pač vrne rezultat, pa bi rad preveril.
na strani davkarije pa v primeru ( in navodilih ) manjka podatek o času računa...

vseeno hvala za odgovor...

lp simon

usbdoo
Prispevkov: 4
Pridružen: 29.09.2015 08:37:01

Je kaj izkušenj z wsdl

OdgovorNapisal/-a usbdoo » 01.10.2015 10:39:25

Za Komunikacijo uporabjam :

FiscalVerification.wsdl
FiscalVerificationSchema.xsd

V svoj program importam FiscalVerification.wsdl.
Ko skušam narediti povezavo

typData := 'FiscalVerificationPortType'

AProtocolData = 'SOAP:Style=rpc'

ATransportData = 'HTTP:address=https://blagajne-test.fu.gov.si:9002/v1/cash_registers'



V odgovor dobim:
Invalid parameter "AProtocolData";


AProtocolData = 'SOAP:Style=rpc' < tole je noter:

if Assigned(AServiceTyp) tole Assigned

Koda: Izberi vse

   
typData = <TTYPEDATA> = {
  CODEPAGE = 60976,
  ORDTYPE = 48,
  MINVALUE = 40430,
  MAXVALUE = 150994944,
  BASETYPE = $e5118467524fb4f4,
  NAMELIST = 'O'#172'ñßw'#24'S'#18'FiscalVerification&{524FB4F4-8467-E511-984F-ACF1DF771853}'#0#0#0#0#0#0#0#0#0' dý÷ÿ'#0#0#0#0#0#0#0#0#0#0#24#0#0#0#0#0#0#0'èÿÿÿÿÿÿÿpé'#159#0#0#0#0#0' '#181#182#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0,
  '@'#182#182#0#0,
  COMPTYPE = $900000000009dee,
  FLOATTYPE = 48,
  MAXLENGTH = 48,
  CLASSTYPE = $9dee30,
  PARENTINFO = $118467524fb4f409,
  PROPCOUNT = -26395,
  UNITNAME = #172'ñßw'#24'S'#18'FiscalVerification&{524FB4F4-8467-E511-984F-ACF1DF771853}'#0#0#0#0#0#0#0#0#0' dý÷ÿ',
  RECSIZE = 10350128,
  MANAGEDFLDCOUNT = 0,
  HELPERPARENT = $9dee30,
  EXTENDEDINFO = $118467524fb4f409,
  HELPERPROPS = -26395,
  HELPERUNIT = #172'ñßw'#24'S'#18'FiscalVerification&{524FB4F4-8467-E511-984F-ACF1DF771853}'#0#0#0#0#0#0#0#0#0' dý÷ÿ',
  METHODKIND = 48,
  PARAMCOUNT = 238,
  PARAMLIST = #157#0#0#0#0#0#9'ô'#180'ORg'#132#17'å'#152'O'#172'ñßw'#24'S'#18'FiscalVerification&{524FB4F4-8467-E511-984F-ACF1DF771853}'#0#0#0#0#0#0#0#0#0' dý÷ÿ'#0#0#0#0#0#0#0#0#0#0#24#0#0#0#0#0#0#0'èÿÿÿÿÿÿÿpé'#159#0#0#0#0#0' '#181#182#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0,
  '@'#182#182#0 <repeats 22 times>,
  #167#186#0 <repeats 13 times>,
  '@'#10'C'#0#0#0#0#0#160#11'C'#0#0#0#0#0#16#12'C'#0#0#0#0#0#128#14'C'#0#0#0#0#0#208#17'C'#0#0#0#0#0'0'#18'C'#0#0#0#0#0'@'#18'C'#0#0#0#0#0#224#17'C'#0#0#0#0#0'0'#15'C'#0#0#0#0#0'P'#16'C'#0#0#0#0#0'p'#24'C'#0#0#0#0#0#128#24'C'#0#0#0#0#0#128#29'K',
  #0 <repeats 13 times>,
  #19'ESemaphoreException'#0#0#0#0'@'#1#0#0#0#0#0#0#192#254#255#255#255#255#255#255#224#161#157#0#0#0#0#0#8#182#182#0 <repeats 29 times>,
  #152#182#182#0 <repeats 22 times>,
  #167#186#0 <repeats 13 times>,
  'P'#207'v'#0#0#0#0#0#160#11'C'#0#0#0#0#0#16#12'C'#0#0#0#0#0#128#14'C'#0#0#0#0#0#208#17'C'#0#0#0#0#0'0'#18'C'#0#0#0#0#0'@'#18'C'#0#0#0#0#0#224#17'C'#0#0#0#0#0'0'#15'C'#0#0#0#0#0'P'#16'C'#0#0#0#0#0'p'#24'C'#0#0#0#0#0#128#24'C'#0#0#0#0#0#144#24'C',
  #0 <repeats 13 times>,
  #16'TSemaphoreObject'#0#0#0#0#0#0#0#15#19'ESemaphoreException'#8#0#0#0#0#0#0#0#0#0#0#15#19'ESemaphoreExceptionP'#180#182#0#0#0#0#0'Hv'#160#0#0#0#0#0#0#0#9'semaphore'#0#0#0#0#0#0#0#15#16'TSemaphoreObject'#8#0 <repeats 13 times>,
  #15#16'TSemaphoreObject8'#181#182#0#0#0#0#0#224#229#157#0#0#0#0#0#0#0#9'semaphore'#0#0#16#0#0#0#0#0#0#0#240#255#255#255#255#255#255#255#224#161#157#0#0#0#0#0#152#183#182#0 <repeats 29 times>,
  #192#183#182#0 <repeats 22 times>,
  #167#186#0 <repeats 13 times>,
  '@'#10'C'#0#0#0#0#0#160#11'C'#0#0#0#0#0#16#12'C'#0#0#0#0#0#128#14'C'#0#0#0#0#0#208#17'C'#0#0#0#0#0'0'#18'C'#0#0#0#0#0'@'#18'C'#0#0#0#0#0#224#17'C'#0#0#0#0#0'0'#15'C'#0#0#0#0#0'P'#16'C'#0#0#0#0#0'p'#24'C'#0#0#0#0#0#128#24'C'#0#0#0#0#0#144#24'C',
  #0 <repeats 13 times>,
  #11'TDataObject'#0#0#0#0#15#11'TDataObject'#8#0#0#0#0#0#0#0#0#0#0#15#11'TDataObject'#200#182#182#0#0#0#0#0#224#229#157#0#0#0#0#0#0#0#9'wst_ty',
  PROCSIG = {
    FLAGS = 48,
    CC = 238,
    RESULTTYPE = $f40900000000009d,
    PARAMCOUNT = 180},
  MININT64VALUE = 10350128,
  MAXINT64VALUE = 1262247398792819721,
  MINQWORDVALUE = 10350128,
  MAXQWORDVALUE = 1262247398792819721,
  INTFPARENT = $9dee30,
  INTFFLAGS = [IFHASGUID, IFHASSTRGUID],
  GUID = {
    DATA1 = 1380955380,
    DATA2 = 33895,
    DATA3 = 58641,
    DATA4 = {
      152,
      79,
      172,
      241,
      223,
      119,
      24,
      83},
    D1 = 1380955380,
    D2 = 33895,
    D3 = 58641,
    D4 = {
      152,
      79,
      172,
      241,
      223,
      119,
      24,
      83},
    TIME_LOW = 1380955380,
    TIME_MID = 33895,
    TIME_HI_AND_VERSION = 58641,
    CLOCK_SEQ_HI_AND_RESERVED = 152,
    CLOCK_SEQ_LOW = 79,
    NODE = {
      172,
      241,
      223,
      119,
      24,
      83}},
  INTFUNIT = 'FiscalVerification',
  RAWINTFPARENT = $9dee30,
  RAWINTFFLAGS = [IFHASGUID, IFHASSTRGUID],
  IID = {
    DATA1 = 1380955380,
    DATA2 = 33895,
    DATA3 = 58641,
    DATA4 = {
      152,
      79,
      172,
      241,
      223,
      119,
      24,
      83},
    D1 = 1380955380,
    D2 = 33895,
    D3 = 58641,
    D4 = {
      152,
      79,
      172,
      241,
      223,
      119,
      24,
      83},
    TIME_LOW = 1380955380,
    TIME_MID = 33895,
    TIME_HI_AND_VERSION = 58641,
    CLOCK_SEQ_HI_AND_RESERVED = 152,
    CLOCK_SEQ_LOW = 79,
    NODE = {
      172,
      241,
      223,
      119,
      24,
      83}},
  RAWINTFUNIT = 'FiscalVerification',
  IIDSTR = ,
  ARRAYDATA = {
    SIZE = 10350128,
    ELCOUNT = 1262247398792819721,
    ELTYPE = $1877dff1ac4f98e5,
    DIMCOUNT = 83,
    DIMS = {
      0x566c616373694612,
      0x7461636966697265,
      0x3432357b266e6f69,
      0x34382d3446344246,
      0x2d313135452d3736,
      0x4643412d46343839,
      0x3538313737464431,
      0x7d33,
      0xfff7fd6420000000,
      0x7f,
      0x18000000,
      0xffffffffe8000000,
      0x9fe970ffffff,
      0xb6b520000000,
      0x0,
      0x0,
      0x0,
      0xb6b640000000,
      0x0,
      0x0,
      0xbaa700000000,
      0x0,
      0x430a40000000,
      0x430ba0000000,
      0x430c10000000,
      0x430e80000000,
      0x4311d0000000,
      0x431230000000,
      0x431240000000,
      0x4311e0000000,
      0x430f30000000,
      0x431050000000,
      0x431870000000,
      0x431880000000,
      0x4b1d80000000,
      0x0,
      0x6d65534513000000,
      0x784565726f687061,
      0x6e6f6974706563,
      0x140000000,
      0xfffffffec0000000,
      0x9da1e0ffffff,
      0xb6b608000000,
      0x0,
      0x0,
      0x0,
      0xb6b698000000,
      0x0,
      0x0,
      0xbaa700000000,
      0x0,
      0x76cf50000000,
      0x430ba0000000,
      0x430c10000000,
      0x430e80000000,
      0x4311d0000000,
      0x431230000000,
      0x431240000000,
      0x4311e0000000,
      0x430f30000000,
      0x431050000000,
      0x431870000000,
      0x431880000000,
      0x431890000000,
      0x0,
      0x6d65535410000000,
      0x624f65726f687061,
      0x7463656a,
      0x655345130f000000,
      0x4565726f6870616d,
      0x6e6f697470656378,
      0x8,
      0x655345130f000000,
      0x4565726f6870616d,
      0x6e6f697470656378,
      0xb6b450,
      0xa07648,
      0x70616d6573090000,
      0x65726f68,
      0x655354100f000000,
      0x4f65726f6870616d,
      0x87463656a62,
      0x0,
      0x655354100f000000,
      0x4f65726f6870616d,
      0xb6b5387463656a62,
      0x9de5e00000000000,
      0x900000000000000,
      0x726f6870616d6573,
      0x10000065,
      0xfffffffff0000000,
      0x9da1e0ffffff,
      0xb6b798000000,
      0x0,
      0x0,
      0x0,
      0xb6b7c0000000,
      0x0,
      0x0,
      0xbaa700000000,
      0x0,
      0x430a40000000,
      0x430ba0000000,
      0x430c10000000,
      0x430e80000000,
      0x4311d0000000,
      0x431230000000,
      0x431240000000,
      0x4311e0000000,
      0x430f30000000,
      0x431050000000,
      0x431870000000,
      0x431880000000,
      0x431890000000,
      0x0,
      0x746144540b000000,
      0x7463656a624f61,
      0x6144540b0f000000,
      0x7463656a624f6174,
      0x8,
      0x6144540b0f000000,
      0x7463656a624f6174,
      0xb6b6c8,
      0x9de5e0,
      0x745f747377090000,
      0x73657079,
      0x0,
      0x0,
      0x0,
      0x0,
      0x0,
      0x0,
      0x0,
      0x0,
      0x6144540c0d000000,
      0x6552656d69546574,
      0xa63,
      0x6144540c0d000000,
      0x6552656d69546574,
      0x30000000a63,
      0x9dc49000,
      0x0,
      0x9dbcb000,
      0x800,
      0x9dbcb000,
      0x900,
      0x695454080d000000,
      0x7636552656d,
      0x0,
      0x695454080d000000,
      0x7636552656d,
      0x9dbca00000000600,
      0x0,
      0x9dbca00000000000,
      0x10000000000,
      0x9dbca00000000000,
      0x20000000000,
      0x9dbcd00000000000,
      0x30000000000,
      0x9dbcb00000000000,
      0x50000000000,
      0x9dbcb00000000000,
      0x60000000000,
      0x0,
      0x7544540c0d000000,
      0x65526e6f69746172,
      0x1d63,
      0x7544540c0d000000,
      0x65526e6f69746172,
      0x80000001d63,
      0x9dbd0000,
      0x0,
      0x9dbd0000,
      0x400,
      0x9dbd0000,
      0x800,
      0x9dbd0000,
      0xc00,
      0x9dbd0000,
      0x1000,
      0x9dbd0000,
      0x1400,
      0x9dbd0000,
      0x1800,
      0x9dbd8000,
      0x1c00,
      0x7358540c03000000,
      0x6e694b6574614464,
      0x1000000000564,
      0x0,
      0x61446b64780b0000,
      0x7807656d69546574,
      0x640a657461446b64,
      0x6c6974755f657461,
      0x100000002000073,
      0xb6b9fb000000,
      0xef00000000000000,
      0xb6b9,
      0xef00000000000000,
      0xfb0000000000b6b9,
      0xb6b9,
      0x6156541103000000,
      0x61706d6f4365756c,
      0x5646e694b6572,
      0x5000000,
      0x800000000000000,
      0x6c617571456b6376,
      0x7373654c6b63760b,
      0x6b63760e6e616854,
      0x5472657461657247,
      0x4e6b63760b6e6168,
      0x126c61757145746f,
      0x6c617571456b6376,
      0x68547373654c724f,
      0x71456b6376156e61,
      0x657247724f6c6175,
      0x6e61685472657461,
      0x74755f657461640a,
      0x736c69,
      0x6000000,
      0xb6ba6c000000,
      0xaf00000005000000,
      0x40000000000b6ba,
      0xb6ba9c000000,
      0x8100000002000000,
      0x10000000000b6ba,
      0xb6ba75000000,
      0x9000000003000000,
      0xb6ba,
      0x6c00000000000000,
      0x750000000000b6ba,
      0x810000000000b6ba,
      0x900000000000b6ba,
      0x9c0000000000b6ba,
      0xaf0000000000b6ba,
      0xb6ba,
      0x8000c000000,
      0x10000000000,
      0x9dbed00000000000,
      0xbd20010000000000,
      0x9d,
      0x8000c000000,
      0x10000000000,
      0x9dbed00000000000,
      0xbd20010000000000,
      0x9d,
      0x10000c000000,
      0x20000000000,
      0x9dbed00000000000,
      0xbd20010000000000,
      0x9d,
      0x10000c000000,
      0x20000000000,
      0x9dbed00000000000,
      0xbd20010000000000,
      0x9d}},
  ELSIZE = 10350128,
  ELTYPE2 = $118467524fb4f409,
  VARTYPE = -1404069659,
  ELTYPE = $694612531877dff1,
  DYNUNITNAME = 'calVerification&{524FB4F4-8467-E511-984F-ACF1DF771853}'#0#0#0#0#0#0#0#0#0' dý÷ÿ'#0#0#0#0#0#0#0#0#0#0#24#0#0#0#0#0#0#0'èÿÿÿÿÿÿÿpé'#159#0#0#0#0#0' '#181#182#0#0#0#0#0#0#0#0,
  INSTANCETYPE = $9dee30,
  REFTYPE = $9dee30}


Vsak namig je dobrodošel.
lp

usbdoo
Prispevkov: 4
Pridružen: 29.09.2015 08:37:01

Re: davčne blagajne ZOI

OdgovorNapisal/-a usbdoo » 02.10.2015 08:17:48

Prijava prostora .
tole je napisano v delphi programu.
https://slo-tech.com/forum/t652679/p4920557#p4920557

Je kdo v odgovor dobil,kaj podobnega?
lp

SimonG
Prispevkov: 84
Pridružen: 12.08.2002 01:04:31

Re: davčne blagajne ZOI

OdgovorNapisal/-a SimonG » 04.10.2015 22:33:29

Pozdravljeni ...
Malo pozna ura, pa vseeno, se mi zdi, da je v kodi kjer se želiš povezati na furs potrebno zamenjati "data" z "test"
Tako zelo na hitro. Malo več jutri ko pridem za računalnk...
L.p. Simon

SimonG
Prispevkov: 84
Pridružen: 12.08.2002 01:04:31

Re: davčne blagajne ZOI

OdgovorNapisal/-a SimonG » 07.10.2015 10:34:47

Pozdravljeni

z uporabo SecureBlackBox sem se nekako prebil do testiranj pošiljanja xml-jev na fursov strežnik, vendar se bojim da njihovi odgovori niso skladni z objavljeno shemo xml.
1 V headerju je datum v obliki yyyy-mm-ddThh:mm:ss v odgovoru pa so dodane še tisočinke sekunde...
2. V headreju je zamenjan vrstni red messageId-ja ter datuma
Sem zmeraj mislil da lahko vrstni red v xml-jih poljubno premetavaš v okviru tag-ov pa se sedaj bojim da ni tako, ker delovanje programa 'crkne'
pri branju responce-a (parameter value '2015-10-06T19:39:11.593' is not Base64 encoded binary)

Čisto možno pa je, da vsega skupaj sploh ne razumem.
Vsak namig je dobrodošel....
lp, simon

ervins
Prispevkov: 86
Pridružen: 03.12.2004 15:49:24

Re: davčne blagajne ZOI

OdgovorNapisal/-a ervins » 07.10.2015 13:38:48

SimonG napisal/-a:Sem zmeraj mislil da lahko vrstni red v xml-jih poljubno premetavaš v okviru tag-ov


To je odvisno od sheme. V trenutni shemi je uporabljen sequence kar pomeni da mora bit najprej element MessageId potem pa nu sledi DateTime.

Poljuben vrstni red bi bil lahko če bi namesto sequence imel choice.

SimonG napisal/-a:V headerju je datum v obliki yyyy-mm-ddThh:mm:ss v odgovoru pa so dodane še tisočinke sekunde...


V shemi piše da je tipa dateTime, kar pomeni da je recimo 2002-05-30T09:30:10.5 veljavna vrednost.

LP, Ervin

SimonG
Prispevkov: 84
Pridružen: 12.08.2002 01:04:31

Re: davčne blagajne ZOI

OdgovorNapisal/-a SimonG » 07.10.2015 14:21:37

Pozdravljen !

Hvala za hiter odgovor !
V bistvu mi program prekine branje responce-a med Id-jem in DateTime v headerju , pa sem mislil da ga
motijo tisočinke, ker je pač v ***.xsd napisano... in sem formatiral datetime na yyyy-mm-ddThh:mm:ss obliko

<element name="DateTime" type="xs:dateTime">
<annotation>
<documentation>Datum in čas pošiljanja sporočila. LLLL-MM-DDTUU:MM:SS</documentation>
</annotation>
</element>

tako da iščem napako dalje....

lep dan še naprej... simon

SimonG
Prispevkov: 84
Pridružen: 12.08.2002 01:04:31

Re: davčne blagajne ZOI

OdgovorNapisal/-a SimonG » 07.10.2015 18:53:44

Pozdravljeni!

Po današnjem testiranju sheme in pošiljanja XML dokumenta na furs-ov server, je furs izdal nova navodila ver. 1.3 in novo xsd shemo.
Prav tako so odpravili tisočinke iz DateTime in popravili vrstni red v Header tag-u.

Trenutno me še samo mučijo minusi v string zapisu ID-jev (tako vsaj pišejo v shemi), response sicer vrnejo pravilen (z EOR), program pa mi pri branju responsa javi, da hoče ta string dekodirat iz Base64. Če kdo ve kako to odpraviti, se priporočam.

Lep Pozdrav


Vrni se na

Kdo je na strani

Po forumu brska: 0 registriranih uporabnikov in 2 gostov