Release Candidate za v2.0

Coordinator
Dec 1, 2012 at 12:03 PM

Upravo smo napravili check-in source code-a za v2.0, koja će biti prva produkcijska verzija; ako ima netko zainteresiran za dodatno testiranje - super :)

Dec 1, 2012 at 12:09 PM

info@klik-doo.hr

spreman za testiranje!!!

Coordinator
Dec 1, 2012 at 12:11 PM

http://fiskalizacija.codeplex.com/SourceControl/changeset/view/17602

Coordinator
Dec 1, 2012 at 1:27 PM

Odlično :)

Kako će sad pasti seciranje... :D

Coordinator
Dec 3, 2012 at 10:48 AM
Edited Dec 3, 2012 at 10:48 AM

Ovo je prilično kvalitetan reliz :)

Dakle, išao sam metodu po metodu, od testne do produkcijske sredine i niti na jedan problem nisam naletio, dapače, nema više onog prvog početnog manjeg odziva od 2-3 sekunde pri uspostavi SSL veze i inicijacije slanja prostora i računa.

Testirao sam na 2.0, 4.0 i 4.5 (radi asinkronih metoda koje koristim na WCF) sa vs2010 i vs2012 pri debug i release konfiguraciji.

Drago mi je što me je Nino poslušao pa u kritičnom vremenu implementirao one metode za potpis XML-a poslovnog prostora, vjerojatno minut prije builda za RC :) hvala, Nino :)

Jedino sam morao sam dopisati onu metodu za dohvat OIB-a iz certifikata, ali to je već malo nesigurnija varijanta do prve službene verzije certifikata.. pa ćemo vidjeti kad se malo sustav uhoda kako će to šljakat... 

Ona implementirana metoda za verifikaciju dolaznog XML-a je također jedan od boljih fičura :) Hvala Mladenu :)

Sve u svemu, RC može ovakav ići vani, bez problema, što se mojeg osobnog mišljenja tiče

Coordinator
Dec 3, 2012 at 10:51 AM

Hvala lijepo na iscrpnom testiranju, čini se da je sve polagano spremno za RTM :)

Odlučili smo ipak izbaciti dohvat OIB-a iz certifikata - naime - dosta je nezahvalno raditi sa nestrukturiranim podacima, a ako se ljudi previše krenu na to oslanjati, pa se pokaže da neki postotak certifikata ima to u nekom drugom obliku, onda će se stvoriti brdo problema...

Iako - spomenutu funkciju za dohvat OIB-a koristimo u jednom malenom dodatku ovom projektu koji će biti dio v2.0 release-a; uskoro više o svemu :)

Coordinator
Dec 3, 2012 at 10:58 AM
Edited Dec 3, 2012 at 10:58 AM

ma hvala tebi, ti si samo.. napravio cijeli projekt :)

Što se tiče OIB-a.. nije to toliko nesigurno koliko se čini, koliko je nesigurno mjesto na kojem će taj OIB biti upisan (CN, DN, O...).. Jedina konstanta je HR+11numeric, što bi, ako sve zakaže pri dohvatu trebalo iskoristiti za traženje numeric dijela stringa koji počinje sa HR i kada se to izvede u kombinaciji s onom metodom koju je opisao Mladen http://fiskalizacija.codeplex.com/discussions/402284 , nekako mi se čini da bi stvar mogla biti koliko-toliko solid-state, ali nikako mission-critical.. tek kao neka helper metoda.. 

Dodatak? Nino, jel' to spremaš još iznenađenja za Božić? :))))

Coordinator
Dec 3, 2012 at 11:00 AM

Ma ništa posebno - vezano uz ovo: http://fiskalizacija.codeplex.com/discussions/404887  :)

Coordinator
Dec 3, 2012 at 11:19 AM

E, da.. još nešto.. tvoj projekt je zakompajliran u dll otišao u Japan ;) I to kod developera koji rade ERP sustave vaga za Walmart :), dakle - XP Embedded, framework 4.0, radi k'o Japanska željeznica :))

Coordinator
Dec 3, 2012 at 11:28 AM

:):):)

Coordinator
Dec 3, 2012 at 11:29 AM
Edited Dec 3, 2012 at 11:31 AM

E, znaš li koje je prvo pitanje bilo od strane lika s kojim sam pričao?

- Što je to utaja poreza? :) Napisao sam mu samo - Balkanski sleng kojeg vi nikada nećete razumjeti...

Dec 3, 2012 at 9:17 PM

Koliko vidim jos uvijek se koristi stara Schema, a PU je izdao novu:

http://www.porezna-uprava.hr/fiskalizacija/dokumenti/Fiskalizacija-WSDL_v1.1.2.zip

Coordinator
Dec 4, 2012 at 6:47 AM

Je, hvala još jednom na upozorenju, u v2.0 idemo sa novom schemom :)

Dec 4, 2012 at 9:22 AM

Dskutec jesi li ti normalan ??!!! Pa kaj hoćeš da nam Nino zapali u Japan ? I onda da umjesto verzije 2.0. dobijemo.. a znaš veš što. (ha ha ha) Bravo svima !!

Coordinator
Dec 4, 2012 at 10:04 AM

:)))

Dec 4, 2012 at 11:22 AM

Znam da ovdje nije mjesto za ovo ali da ne otvaram novu temu. Imam rješenje za sve. Razletimo se po terenu sa ovim demo stvarima, pokupimo lovu, iznajmimo čarter  i onda 31.12 svi zapalimo u Japan ili Austarliju npr. ha ha (meni "dosadno", čekam certifikate od korisnika i EXE verziju 2)

Dec 4, 2012 at 4:42 PM

Koje postavke koristite za generiranje sa Xsd2Code?

 

Ja sam pokusao izgenerirati sa novom, ali mi izbaci gresku oko deklaracije Signature-a, a nisam bas nesto pametan za XML da idem rucno to pretipkavat :)

Coordinator
Dec 4, 2012 at 5:56 PM

Postavke za generiranje su u source-u

Dec 4, 2012 at 10:11 PM
Edited Dec 4, 2012 at 10:11 PM

U cemu grijesim?

 

http://img22.imageshack.us/img22/483/optionsey.png

 

http://img12.imageshack.us/img12/892/errorrw.png

Dec 5, 2012 at 1:16 PM

To je i meni javljalo pa sam lijepo zdravo seljacki slozio sam rucno xml, tuzno ali istinito.

Dec 5, 2012 at 4:26 PM

Ali ako radi mora bit neka caka zasto nama ne radi xD

Coordinator
Dec 5, 2012 at 4:27 PM

Nismo još updateali prema novoj shemi pa nemam nove komentare na tu temu, dok i sami ne probamo :)

Dec 5, 2012 at 7:04 PM
Edited Dec 5, 2012 at 9:41 PM

Isto mi javlja i sa starom Schemom :(

 

Strpljivo cekam novi Release :P

Edit:

 

Jos sam malo istrazivao i kontam da je problem referenca na SignatureType koji se nalazi u xmldsig-core-schema.xsd, kako da nagovorim Xsd2Code da bude toga svjestan, a da ne radim promjene na FiskalizacijaSchema.xsd?

 

Ili bi radilo da zamjenim link: http://www.w3.org/2000/09/xmldsig# sa pathom na kompu, generiram Class, pa vratim nazad i picim dalje jer nesto sam cito da Xsd2Code muci ako mu nisu sve Scheme u istom Folderu?

 

Nebi tolko davio al kontam da ce mi kad tad trebat nesto slicno, pa da se ne oslanjam uvijek na nekog da generira umjesto mene, a ujedno da ja ne moram rucno :P

Dec 8, 2012 at 8:15 PM

@nrasinec: Jel bi mogao reći što si još dodao u poziv xsd2code-a da ti prođe, a ne baci ovu grešku kad se pokrene?

Error: The 'http://www.w3.org/2000/09/xmldsig#:Signature' element is not declared. Sub type: Unspecified

Na OVOM discussionu si rekao da ste koristili xsd2code, a ranije ovdje kažeš da su u source-u postavke. Ukoliko to nije onaj komentar na početku autogenerirane datoteke, molim te da me uputiš gdje si stavio postavke u source, a ako ne, daj ispravi ovaj poziv da funkcionira:

Xsd2Code.exe [Full path na FiskalizacijaSchema.xsd] [Namespace] [Output filename] /is /sc /xa /gbc /tcc- /hp

Hvala!

Dec 8, 2012 at 10:16 PM

Xsd2Code ne moze generirati nesto iz neceg sta mu nije dostupno dakle ako on pokusa importat XSD s neta:

http://www.w3.org/2000/09/xmldsig#

mahuna i dobijes da nije deklariran Signature kojeg pozivas dalje u Schemi.

 

Sad sta mozes deklarirat elemente Signature-a i onda ponovo probat generirat

ili

Postavit import da cupa tebi sa harda tocnije iz istog foldera di ti je i ta Schema

 

P.S. postoje 2 XSD-a, xmldsig-core-schema.xsd ti je ustvari Schema za Signature koji pozivas, a sliku postavki imas gore u mom Post-u iznad^^

Dec 8, 2012 at 10:37 PM

Na shvatio sam ja da njega nešto muči s tom referencom na Signature od w3, ali sam s xsd-om na vi pa, a u xsd2code ne znam kako da mu zadam dva ulazna Xsd-a, tj. sheme.

 

Jel mu u ovoj apisovom shemi zamjenim onaj url s neta sa lokalnim pathom te "druge" sheme pa to provucem kroz njega ili kak?

Thx

Dec 9, 2012 at 2:14 AM

Moras i namespace i import zamjenit sa lokalnim pathom s masine.

Dec 9, 2012 at 10:00 AM
Edited Dec 9, 2012 at 10:03 AM

Eto, gnjavim i dalje :), no ne shvaćam gdje ga muči:

 

<schema xmlns="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://www.apis-it.hr/fin/2012/types/f73"
  xmlns:tns="http://www.apis-it.hr/fin/2012/types/f73"
  xmlns:ds="http://www.w3.org/2000/09/xmldsig#" ds:schemaLocation="file:///C:/xmldsig-core-schema.xsd"
  elementFormDefault="qualified" version="1.2">

  <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="file:///C:/xmldsig-core-schema.xsd" />

 

probao sam prvo bez, pa sa ovim ds:shemaLocation unutar schema elementa, no sve vraća grešku:

Error: The 'http://www.w3.org/2000/09/xmldsig#:Signature' element is not declared. Sub type: Unspecified

 

Pa bih stvarno cijenio ukoliko bi mi netko mogao samo prepraviti navedeni dio xsd-a.

Dec 9, 2012 at 11:14 AM
Edited Dec 9, 2012 at 11:18 AM

Namespace ti je jos uvijek: 

http://www.w3.org/2000/09/xmldsig#

I sumnjam da ti je Visual Studio Project odma na C:

"file:///C:/xmldsig-core-schema.xsd"

+ schemaLocation je URI znaci ne treba ti file:URI :P

Zamjenis sve sa:

C:\Users\User\Documents\Visual Studio 2010\Projects\FiskalizacijaDEV\Source\Raverus.FiskalizacijaDEV\Schema\xmldsig#

C:\Users\User\Documents\Visual Studio 2010\Projects\FiskalizacijaDEV\Source\Raverus.FiskalizacijaDEV\Schema\
xmldsig-core-schema.xsd"
Dec 9, 2012 at 11:25 AM

Sad, ili sam ja blesav ili... :P

<schema xmlns="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://www.apis-it.hr/fin/2012/types/f73"
  xmlns:tns="http://www.apis-it.hr/fin/2012/types/f73"
  xmlns:ds="C:\Users\njofra\Documents\Visual Studio 2010\Projects\FiskalizacijaDEV\Source\Raverus.FiskalizacijaDEV\Schema\xmldsig#"
  elementFormDefault="qualified" version="1.2">

  <import namespace="C:\Users\njofra\Documents\Visual Studio 2010\Projects\FiskalizacijaDEV\Source\Raverus.FiskalizacijaDEV\Schema\xmldsig#" schemaLocation="C:\Users\njofra\Documents\Visual Studio 2010\Projects\FiskalizacijaDEV\Source\Raverus.FiskalizacijaDEV\Schema\xmldsig-core-schema.xsd" />

i opet ista greška, samo drugi namespace...

Dec 9, 2012 at 12:42 PM

Uglavnom, nisam uspio izgenerirat, ali sam usporedbom sheme u 1.0 i sheme 1.2 ručno napravio tih par prepravki:

- Dodan je ZaglavljeOdgovorType + pripadne izmjene

- Iznos se svugdje iz decimal mijenja u string

 

Te FiskalizacijaShema.designer.cs file nakon toga izgleda ovako (izbačen komentar o autogeneriranju s početka), pa ako nekome treba, nek si prepiše sadržaj (c/p):

using System;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections;
using System.Xml.Schema;
using System.ComponentModel;
using System.IO;
using System.Text;
using System.Xml;
using System.Collections.Generic;

namespace Raverus.FiskalizacijaDEV.Schema
{
    #region Base entity class
    public partial class EntityBase<T>
    {

        private static System.Xml.Serialization.XmlSerializer serializer;

        private static System.Xml.Serialization.XmlSerializer Serializer
        {
            get
            {
                if ((serializer == null))
                {
                    serializer = new System.Xml.Serialization.XmlSerializer(typeof(T));
                }
                return serializer;
            }
        }

        #region Serialize/Deserialize
        /// <summary>
        /// Serializes current EntityBase object into an XML document
        /// </summary>
        /// <returns>string XML value</returns>
        public virtual string Serialize(System.Text.Encoding encoding)
        {
            System.IO.StreamReader streamReader = null;
            System.IO.MemoryStream memoryStream = null;
            try
            {
                memoryStream = new System.IO.MemoryStream();
                System.Xml.XmlWriterSettings xmlWriterSettings = new System.Xml.XmlWriterSettings();
                xmlWriterSettings.Encoding = encoding;
                System.Xml.XmlWriter xmlWriter = XmlWriter.Create(memoryStream, xmlWriterSettings);

                System.Xml.Serialization.XmlSerializerNamespaces ns = new System.Xml.Serialization.XmlSerializerNamespaces();
                ns.Add("tns", "http://www.apis-it.hr/fin/2012/types/f73");
                ns.Add("xsi", "http://www.w3.org/2001/XMLSchema-instance");
                Serializer.Serialize(xmlWriter, this, ns);

                //Serializer.Serialize(xmlWriter, this);
                memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
                streamReader = new System.IO.StreamReader(memoryStream);
                return streamReader.ReadToEnd();
            }
            finally
            {
                if ((streamReader != null))
                {
                    streamReader.Dispose();
                }
                if ((memoryStream != null))
                {
                    memoryStream.Dispose();
                }
            }
        }

        public virtual string Serialize()
        {
            return Serialize(Encoding.UTF8);
        }

        /// <summary>
        /// Deserializes workflow markup into an EntityBase object
        /// </summary>
        /// <param name="xml">string workflow markup to deserialize</param>
        /// <param name="obj">Output EntityBase object</param>
        /// <param name="exception">output Exception value if deserialize failed</param>
        /// <returns>true if this XmlSerializer can deserialize the object; otherwise, false</returns>
        public static bool Deserialize(string xml, out T obj, out System.Exception exception)
        {
            exception = null;
            obj = default(T);
            try
            {
                obj = Deserialize(xml);
                return true;
            }
            catch (System.Exception ex)
            {
                exception = ex;
                return false;
            }
        }

        public static bool Deserialize(string xml, out T obj)
        {
            System.Exception exception = null;
            return Deserialize(xml, out obj, out exception);
        }

        public static T Deserialize(string xml)
        {
            System.IO.StringReader stringReader = null;
            try
            {
                stringReader = new System.IO.StringReader(xml);
                return ((T)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
            }
            finally
            {
                if ((stringReader != null))
                {
                    stringReader.Dispose();
                }
            }
        }

        /// <summary>
        /// Serializes current EntityBase object into file
        /// </summary>
        /// <param name="fileName">full path of outupt xml file</param>
        /// <param name="exception">output Exception value if failed</param>
        /// <returns>true if can serialize and save into file; otherwise, false</returns>
        public virtual bool SaveToFile(string fileName, System.Text.Encoding encoding, out System.Exception exception)
        {
            exception = null;
            try
            {
                SaveToFile(fileName, encoding);
                return true;
            }
            catch (System.Exception e)
            {
                exception = e;
                return false;
            }
        }

        public virtual bool SaveToFile(string fileName, out System.Exception exception)
        {
            return SaveToFile(fileName, Encoding.UTF8, out exception);
        }

        public virtual void SaveToFile(string fileName)
        {
            SaveToFile(fileName, Encoding.UTF8);
        }

        public virtual void SaveToFile(string fileName, System.Text.Encoding encoding)
        {
            System.IO.StreamWriter streamWriter = null;
            try
            {
                string xmlString = Serialize(encoding);
                streamWriter = new System.IO.StreamWriter(fileName, false, Encoding.UTF8);
                streamWriter.WriteLine(xmlString);
                streamWriter.Close();
            }
            finally
            {
                if ((streamWriter != null))
                {
                    streamWriter.Dispose();
                }
            }
        }

        /// <summary>
        /// Deserializes xml markup from file into an EntityBase object
        /// </summary>
        /// <param name="fileName">string xml file to load and deserialize</param>
        /// <param name="obj">Output EntityBase object</param>
        /// <param name="exception">output Exception value if deserialize failed</param>
        /// <returns>true if this XmlSerializer can deserialize the object; otherwise, false</returns>
        public static bool LoadFromFile(string fileName, System.Text.Encoding encoding, out T obj, out System.Exception exception)
        {
            exception = null;
            obj = default(T);
            try
            {
                obj = LoadFromFile(fileName, encoding);
                return true;
            }
            catch (System.Exception ex)
            {
                exception = ex;
                return false;
            }
        }

        public static bool LoadFromFile(string fileName, out T obj, out System.Exception exception)
        {
            return LoadFromFile(fileName, Encoding.UTF8, out obj, out exception);
        }

        public static bool LoadFromFile(string fileName, out T obj)
        {
            System.Exception exception = null;
            return LoadFromFile(fileName, out obj, out exception);
        }

        public static T LoadFromFile(string fileName)
        {
            return LoadFromFile(fileName, Encoding.UTF8);
        }

        public static T LoadFromFile(string fileName, System.Text.Encoding encoding)
        {
            System.IO.FileStream file = null;
            System.IO.StreamReader sr = null;
            try
            {
                file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
                sr = new System.IO.StreamReader(file, encoding);
                string xmlString = sr.ReadToEnd();
                sr.Close();
                file.Close();
                return Deserialize(xmlString);
            }
            finally
            {
                if ((file != null))
                {
                    file.Dispose();
                }
                if ((sr != null))
                {
                    sr.Dispose();
                }
            }
        }
        #endregion
    }
    #endregion

    /// <summary>
    /// Poruka prema web servisu za zaprimanje racuna.
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = false)]
    public partial class RacunZahtjev : EntityBase<RacunZahtjev>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private ZaglavljeType zaglavljeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private RacunType racunField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string idField;

        /// <summary>
        /// RacunZahtjev class constructor
        /// </summary>
        public RacunZahtjev()
        {
            this.racunField = new RacunType();
            this.zaglavljeField = new ZaglavljeType();
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public ZaglavljeType Zaglavlje
        {
            get
            {
                return this.zaglavljeField;
            }
            set
            {
                this.zaglavljeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public RacunType Racun
        {
            get
            {
                return this.racunField;
            }
            set
            {
                this.racunField = value;
            }
        }

        /// <summary>
        /// Atribut za potrebe digitalnog potpisa, u njega se stavlja referentni na koji se referencira digitalni potpis.
        /// </summary>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class ZaglavljeType : EntityBase<ZaglavljeType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string idPorukeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string datumVrijemeField;

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string IdPoruke
        {
            get
            {
                return this.idPorukeField;
            }
            set
            {
                this.idPorukeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public string DatumVrijeme
        {
            get
            {
                return this.datumVrijemeField;
            }
            set
            {
                this.datumVrijemeField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class ZaglavljeOdgovorType : EntityBase<ZaglavljeOdgovorType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string idPorukeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string datumVrijemeField;

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string IdPoruke
        {
            get
            {
                return this.idPorukeField;
            }
            set
            {
                this.idPorukeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public string DatumVrijeme
        {
            get
            {
                return this.datumVrijemeField;
            }
            set
            {
                this.datumVrijemeField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class NaknadaType : EntityBase<NaknadaType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string nazivNField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string iznosNField;

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string NazivN
        {
            get
            {
                return this.nazivNField;
            }
            set
            {
                this.nazivNField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public string IznosN
        {
            get
            {
                return this.iznosNField;
            }
            set
            {
                this.iznosNField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class PorezOstaloType : EntityBase<PorezOstaloType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string nazivField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private decimal stopaField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private decimal osnovicaField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string iznosField;

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string Naziv
        {
            get
            {
                return this.nazivField;
            }
            set
            {
                this.nazivField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public decimal Stopa
        {
            get
            {
                return this.stopaField;
            }
            set
            {
                this.stopaField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 2)]
        public decimal Osnovica
        {
            get
            {
                return this.osnovicaField;
            }
            set
            {
                this.osnovicaField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 3)]
        public string Iznos
        {
            get
            {
                return this.iznosField;
            }
            set
            {
                this.iznosField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class PorezType : EntityBase<PorezType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private decimal stopaField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private decimal osnovicaField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string iznosField;

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public decimal Stopa
        {
            get
            {
                return this.stopaField;
            }
            set
            {
                this.stopaField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public decimal Osnovica
        {
            get
            {
                return this.osnovicaField;
            }
            set
            {
                this.osnovicaField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 2)]
        public string Iznos
        {
            get
            {
                return this.iznosField;
            }
            set
            {
                this.iznosField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class BrojRacunaType : EntityBase<BrojRacunaType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string brOznRacField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string oznPosPrField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string oznNapUrField;

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string BrOznRac
        {
            get
            {
                return this.brOznRacField;
            }
            set
            {
                this.brOznRacField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public string OznPosPr
        {
            get
            {
                return this.oznPosPrField;
            }
            set
            {
                this.oznPosPrField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 2)]
        public string OznNapUr
        {
            get
            {
                return this.oznNapUrField;
            }
            set
            {
                this.oznNapUrField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class RacunType : EntityBase<RacunType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string oibField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private bool uSustPdvField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string datVrijemeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private OznakaSlijednostiType oznSlijedField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private BrojRacunaType brRacField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<PorezType> pdvField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<PorezType> pnpField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<PorezOstaloType> ostaliPorField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string iznosOslobPdvField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private bool iznosOslobPdvFieldSpecified;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string iznosMarzaField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private bool iznosMarzaFieldSpecified;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string iznosNePodlOporField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private bool iznosNePodlOporFieldSpecified;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<NaknadaType> naknadeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string iznosUkupnoField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private NacinPlacanjaType nacinPlacField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string oibOperField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string zastKodField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private bool nakDostField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string paragonBrRacField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string specNamjField;

        /// <summary>
        /// RacunType class constructor
        /// </summary>
        public RacunType()
        {
            this.naknadeField = new List<NaknadaType>();
            this.ostaliPorField = new List<PorezOstaloType>();
            this.pnpField = new List<PorezType>();
            this.pdvField = new List<PorezType>();
            this.brRacField = new BrojRacunaType();
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string Oib
        {
            get
            {
                return this.oibField;
            }
            set
            {
                this.oibField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public bool USustPdv
        {
            get
            {
                return this.uSustPdvField;
            }
            set
            {
                this.uSustPdvField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 2)]
        public string DatVrijeme
        {
            get
            {
                return this.datVrijemeField;
            }
            set
            {
                this.datVrijemeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 3)]
        public OznakaSlijednostiType OznSlijed
        {
            get
            {
                return this.oznSlijedField;
            }
            set
            {
                this.oznSlijedField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 4)]
        public BrojRacunaType BrRac
        {
            get
            {
                return this.brRacField;
            }
            set
            {
                this.brRacField = value;
            }
        }

        [System.Xml.Serialization.XmlArrayAttribute(Order = 5)]
        [System.Xml.Serialization.XmlArrayItemAttribute("Porez", IsNullable = false)]
        public List<PorezType> Pdv
        {
            get
            {
                return this.pdvField;
            }
            set
            {
                this.pdvField = value;
            }
        }

        [System.Xml.Serialization.XmlArrayAttribute(Order = 6)]
        [System.Xml.Serialization.XmlArrayItemAttribute("Porez", IsNullable = false)]
        public List<PorezType> Pnp
        {
            get
            {
                return this.pnpField;
            }
            set
            {
                this.pnpField = value;
            }
        }

        [System.Xml.Serialization.XmlArrayAttribute(Order = 7)]
        [System.Xml.Serialization.XmlArrayItemAttribute("Porez", IsNullable = false)]
        public List<PorezOstaloType> OstaliPor
        {
            get
            {
                return this.ostaliPorField;
            }
            set
            {
                this.ostaliPorField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 8)]
        public string IznosOslobPdv
        {
            get
            {
                return this.iznosOslobPdvField;
            }
            set
            {
                this.iznosOslobPdvField = value;
            }
        }

        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool IznosOslobPdvSpecified
        {
            get
            {
                return this.iznosOslobPdvFieldSpecified;
            }
            set
            {
                this.iznosOslobPdvFieldSpecified = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 9)]
        public string IznosMarza
        {
            get
            {
                return this.iznosMarzaField;
            }
            set
            {
                this.iznosMarzaField = value;
            }
        }

        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool IznosMarzaSpecified
        {
            get
            {
                return this.iznosMarzaFieldSpecified;
            }
            set
            {
                this.iznosMarzaFieldSpecified = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 10)]
        public string IznosNePodlOpor
        {
            get
            {
                return this.iznosNePodlOporField;
            }
            set
            {
                this.iznosNePodlOporField = value;
            }
        }

        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool IznosNePodlOporSpecified
        {
            get
            {
                return this.iznosNePodlOporFieldSpecified;
            }
            set
            {
                this.iznosNePodlOporFieldSpecified = value;
            }
        }

        [System.Xml.Serialization.XmlArrayAttribute(Order = 11)]
        [System.Xml.Serialization.XmlArrayItemAttribute("Naknada", IsNullable = false)]
        public List<NaknadaType> Naknade
        {
            get
            {
                return this.naknadeField;
            }
            set
            {
                this.naknadeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 12)]
        public string IznosUkupno
        {
            get
            {
                return this.iznosUkupnoField;
            }
            set
            {
                this.iznosUkupnoField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 13)]
        public NacinPlacanjaType NacinPlac
        {
            get
            {
                return this.nacinPlacField;
            }
            set
            {
                this.nacinPlacField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 14)]
        public string OibOper
        {
            get
            {
                return this.oibOperField;
            }
            set
            {
                this.oibOperField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 15)]
        public string ZastKod
        {
            get
            {
                return this.zastKodField;
            }
            set
            {
                this.zastKodField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 16)]
        public bool NakDost
        {
            get
            {
                return this.nakDostField;
            }
            set
            {
                this.nakDostField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 17)]
        public string ParagonBrRac
        {
            get
            {
                return this.paragonBrRacField;
            }
            set
            {
                this.paragonBrRacField = value;
            }
        }

        /// <summary>
        /// Potrebno je dostaviti jedan od podataka u nastavku:
		///	- OIB pravne ili fizicke osobe koja je proizvela programsko rjesenje ili
		///	- OIB pravne ili fizicke osobe koja odrzava programsko rjesenje ili
		///	- OIB pravne ili fizicke osobe prodavatelja u slucaju da se koristi rjesenje od stranog proizvodaca – bez lokalnog partnera
        /// </summary>
        [System.Xml.Serialization.XmlElementAttribute(Order = 18)]
        public string SpecNamj
        {
            get
            {
                return this.specNamjField;
            }
            set
            {
                this.specNamjField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    public enum OznakaSlijednostiType
    {

        /// <remarks/>
        N,

        /// <remarks/>
        P,
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    public enum NacinPlacanjaType
    {

        /// <remarks/>
        G,

        /// <remarks/>
        K,

        /// <remarks/>
        C,

        /// <remarks/>
        T,

        /// <remarks/>
        O,
    }

    /// <summary>
    /// Odgovor servisa za zaprimanje racuna.
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = false)]
    public partial class RacunOdgovor : EntityBase<RacunOdgovor>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private ZaglavljeOdgovorType zaglavljeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string jirField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<GreskaType> greskeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string idField;

        /// <summary>
        /// RacunOdgovor class constructor
        /// </summary>
        public RacunOdgovor()
        {
            this.greskeField = new List<GreskaType>();
            this.zaglavljeField = new ZaglavljeOdgovorType();
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public ZaglavljeOdgovorType Zaglavlje
        {
            get
            {
                return this.zaglavljeField;
            }
            set
            {
                this.zaglavljeField = value;
            }
        }

        /// <summary>
        /// Jedinstveni identifikator racuna.
        /// </summary>
        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public string Jir
        {
            get
            {
                return this.jirField;
            }
            set
            {
                this.jirField = value;
            }
        }

        [System.Xml.Serialization.XmlArrayAttribute(Order = 2)]
        [System.Xml.Serialization.XmlArrayItemAttribute("Greska", IsNullable = false)]
        public List<GreskaType> Greske
        {
            get
            {
                return this.greskeField;
            }
            set
            {
                this.greskeField = value;
            }
        }

        /// <summary>
        /// Atribut za potrebe digitalnog potpisa, u njega se stavlja referentni na koji se referencira digitalni potpis.
        /// </summary>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class GreskaType : EntityBase<GreskaType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string sifraGreskeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string porukaGreskeField;

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string SifraGreske
        {
            get
            {
                return this.sifraGreskeField;
            }
            set
            {
                this.sifraGreskeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public string PorukaGreske
        {
            get
            {
                return this.porukaGreskeField;
            }
            set
            {
                this.porukaGreskeField = value;
            }
        }
    }

    /// <summary>
    /// Poruka prema web servisu za zaprimanje podataka o poslovnom prostoru.
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = false)]
    public partial class PoslovniProstorZahtjev : EntityBase<PoslovniProstorZahtjev>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private ZaglavljeType zaglavljeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private PoslovniProstorType poslovniProstorField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string idField;

        /// <summary>
        /// PoslovniProstorZahtjev class constructor
        /// </summary>
        public PoslovniProstorZahtjev()
        {
            this.poslovniProstorField = new PoslovniProstorType();
            this.zaglavljeField = new ZaglavljeType();
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public ZaglavljeType Zaglavlje
        {
            get
            {
                return this.zaglavljeField;
            }
            set
            {
                this.zaglavljeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public PoslovniProstorType PoslovniProstor
        {
            get
            {
                return this.poslovniProstorField;
            }
            set
            {
                this.poslovniProstorField = value;
            }
        }

        /// <summary>
        /// Atribut za potrebe digitalnog potpisa, u njega se stavlja referentni na koji se referencira digitalni potpis.
        /// </summary>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class PoslovniProstorType : EntityBase<PoslovniProstorType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string oibField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string oznPoslProstoraField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private AdresniPodatakType adresniPodatakField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string radnoVrijemeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string datumPocetkaPrimjeneField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private OznakaZatvaranjaType oznakaZatvaranjaField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private bool oznakaZatvaranjaFieldSpecified;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string specNamjField;

        /// <summary>
        /// PoslovniProstorType class constructor
        /// </summary>
        public PoslovniProstorType()
        {
            this.adresniPodatakField = new AdresniPodatakType();
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string Oib
        {
            get
            {
                return this.oibField;
            }
            set
            {
                this.oibField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public string OznPoslProstora
        {
            get
            {
                return this.oznPoslProstoraField;
            }
            set
            {
                this.oznPoslProstoraField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 2)]
        public AdresniPodatakType AdresniPodatak
        {
            get
            {
                return this.adresniPodatakField;
            }
            set
            {
                this.adresniPodatakField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 3)]
        public string RadnoVrijeme
        {
            get
            {
                return this.radnoVrijemeField;
            }
            set
            {
                this.radnoVrijemeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 4)]
        public string DatumPocetkaPrimjene
        {
            get
            {
                return this.datumPocetkaPrimjeneField;
            }
            set
            {
                this.datumPocetkaPrimjeneField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 5)]
        public OznakaZatvaranjaType OznakaZatvaranja
        {
            get
            {
                return this.oznakaZatvaranjaField;
            }
            set
            {
                this.oznakaZatvaranjaField = value;
            }
        }

        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool OznakaZatvaranjaSpecified
        {
            get
            {
                return this.oznakaZatvaranjaFieldSpecified;
            }
            set
            {
                this.oznakaZatvaranjaFieldSpecified = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 6)]
        public string SpecNamj
        {
            get
            {
                return this.specNamjField;
            }
            set
            {
                this.specNamjField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class AdresniPodatakType : EntityBase<AdresniPodatakType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private object itemField;

        [System.Xml.Serialization.XmlElementAttribute("Adresa", typeof(AdresaType), Order = 0)]
        [System.Xml.Serialization.XmlElementAttribute("OstaliTipoviPP", typeof(string), Order = 0)]
        public object Item
        {
            get
            {
                return this.itemField;
            }
            set
            {
                this.itemField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class AdresaType : EntityBase<AdresaType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string ulicaField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string kucniBrojField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string kucniBrojDodatakField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string brojPosteField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string naseljeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string opcinaField;

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public string Ulica
        {
            get
            {
                return this.ulicaField;
            }
            set
            {
                this.ulicaField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 1)]
        public string KucniBroj
        {
            get
            {
                return this.kucniBrojField;
            }
            set
            {
                this.kucniBrojField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 2)]
        public string KucniBrojDodatak
        {
            get
            {
                return this.kucniBrojDodatakField;
            }
            set
            {
                this.kucniBrojDodatakField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 3)]
        public string BrojPoste
        {
            get
            {
                return this.brojPosteField;
            }
            set
            {
                this.brojPosteField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 4)]
        public string Naselje
        {
            get
            {
                return this.naseljeField;
            }
            set
            {
                this.naseljeField = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 5)]
        public string Opcina
        {
            get
            {
                return this.opcinaField;
            }
            set
            {
                this.opcinaField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    public enum OznakaZatvaranjaType
    {

        /// <remarks/>
        Z,
    }

    /// <summary>
    /// Odgovor servisa za zaprimanje podataka o poslovnom prostoru.
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = false)]
    public partial class PoslovniProstorOdgovor : EntityBase<PoslovniProstorOdgovor>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private ZaglavljeOdgovorType zaglavljeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<GreskaType> greskeField;

        [EditorBrowsable(EditorBrowsableState.Never)]
        private string idField;

        /// <summary>
        /// PoslovniProstorOdgovor class constructor
        /// </summary>
        public PoslovniProstorOdgovor()
        {
            this.greskeField = new List<GreskaType>();
            this.zaglavljeField = new ZaglavljeOdgovorType();
        }

        [System.Xml.Serialization.XmlElementAttribute(Order = 0)]
        public ZaglavljeOdgovorType Zaglavlje
        {
            get
            {
                return this.zaglavljeField;
            }
            set
            {
                this.zaglavljeField = value;
            }
        }

        [System.Xml.Serialization.XmlArrayAttribute(Order = 1)]
        [System.Xml.Serialization.XmlArrayItemAttribute("Greska", IsNullable = false)]
        public List<GreskaType> Greske
        {
            get
            {
                return this.greskeField;
            }
            set
            {
                this.greskeField = value;
            }
        }

        /// <summary>
        /// Atribut za potrebe digitalnog potpisa, u njega se stavlja referentni na koji se referencira digitalni potpis.
        /// </summary>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class GreskeType : EntityBase<GreskeType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<GreskaType> greskaField;

        /// <summary>
        /// GreskeType class constructor
        /// </summary>
        public GreskeType()
        {
            this.greskaField = new List<GreskaType>();
        }

        [System.Xml.Serialization.XmlElementAttribute("Greska", Order = 0)]
        public List<GreskaType> Greska
        {
            get
            {
                return this.greskaField;
            }
            set
            {
                this.greskaField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class NaknadeType : EntityBase<NaknadeType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<NaknadaType> naknadaField;

        /// <summary>
        /// NaknadeType class constructor
        /// </summary>
        public NaknadeType()
        {
            this.naknadaField = new List<NaknadaType>();
        }

        [System.Xml.Serialization.XmlElementAttribute("Naknada", Order = 0)]
        public List<NaknadaType> Naknada
        {
            get
            {
                return this.naknadaField;
            }
            set
            {
                this.naknadaField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class OstaliPoreziType : EntityBase<OstaliPoreziType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<PorezOstaloType> porezField;

        /// <summary>
        /// OstaliPoreziType class constructor
        /// </summary>
        public OstaliPoreziType()
        {
            this.porezField = new List<PorezOstaloType>();
        }

        [System.Xml.Serialization.XmlElementAttribute("Porez", Order = 0)]
        public List<PorezOstaloType> Porez
        {
            get
            {
                return this.porezField;
            }
            set
            {
                this.porezField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class PorezNaPotrosnjuType : EntityBase<PorezNaPotrosnjuType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<PorezType> porezField;

        /// <summary>
        /// PorezNaPotrosnjuType class constructor
        /// </summary>
        public PorezNaPotrosnjuType()
        {
            this.porezField = new List<PorezType>();
        }

        [System.Xml.Serialization.XmlElementAttribute("Porez", Order = 0)]
        public List<PorezType> Porez
        {
            get
            {
                return this.porezField;
            }
            set
            {
                this.porezField = value;
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.apis-it.hr/fin/2012/types/f73", IsNullable = true)]
    public partial class PdvType : EntityBase<PdvType>
    {

        [EditorBrowsable(EditorBrowsableState.Never)]
        private List<PorezType> porezField;

        /// <summary>
        /// PdvType class constructor
        /// </summary>
        public PdvType()
        {
            this.porezField = new List<PorezType>();
        }

        [System.Xml.Serialization.XmlElementAttribute("Porez", Order = 0)]
        public List<PorezType> Porez
        {
            get
            {
                return this.porezField;
            }
            set
            {
                this.porezField = value;
            }
        }
    }
}

Jun 20, 2013 at 12:47 PM
Znam da je sve rješeno odavno ali pokušavam nešto naučit iz ovog projekta, i upravo tu sam zapeo na kreiranju classe iz xsd sheme pomoću xsd2code addina iz VS. Javlja mi iste greške kao vama, pa ako ima zainteresiranih za pomoć hvala unaprijed.
Jun 21, 2013 at 12:54 AM
Stavi datoteke xmldsig-core-schema.xsd i FiskalizacijaSchema.xsd u isti dir sa xsd2code.

U FiskalizacijaSchema.xsd promijeni liniju
  <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd" />
u
  <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd" />
U datoteci xmldsig-core-schema.xsd obriši ovaj dio:
<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd" [
   <!ATTLIST schema 
     xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
   <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
   <!ENTITY % p ''>
   <!ENTITY % s ''>
  ]>
Nakon toga će ti xsd2code raditi kako treba.
Jun 21, 2013 at 8:29 AM
Mirko care hvala... RADI!!!