<?xml version="1.0"?>
<schema targetNamespace="http://ws.infotorg.no/xml/ErgoGroup/Ajour/2007-11-07/Ajour.xsd"
    xmlns:tns="http://ws.infotorg.no/xml/ErgoGroup/Ajour/2007-11-07/Ajour.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">

    <annotation>
        <documentation xml:lang="no">
            Datatyper for Ajour.

            © 2007 ErgoGroup AS
            Forfatter: Dag Lem &lt;dag@nimrod.no&gt;
        </documentation>
    </annotation>

    <simpleType name="OPPDRAGSID">
        <annotation>
            <documentation>Verdi 'OPPDRAGSID' : Identifisering av kundens portefølje</documentation>
            <documentation>Value 'OPPDRAGSID' : Identification of customer portfolio</documentation>
        </annotation>
        <restriction base="string">
            <maxLength value="10" />
        </restriction>
    </simpleType>

    <simpleType name="EGENID">
        <annotation>
            <documentation>Verdi 'EGENID' : Kundens uniqe identifisering av objektet</documentation>
            <documentation>Value 'EGENID' : Customer uniqe identification of the objekt</documentation>
        </annotation>
        <restriction base="string">
            <maxLength value="36" />
        </restriction>
    </simpleType>

    <simpleType name="EVRYID">
        <annotation>
            <documentation>Verdi 'EVRYID' : Evrys uniqe identifisering av objektet</documentation>
            <documentation>Value 'EVRYID' : Evry uniqe identification of the objekt</documentation>
        </annotation>
        <restriction base="string">
            <maxLength value="36" />
        </restriction>
    </simpleType>

   <simpleType name="KILDEID">
        <annotation>
            <documentation>Verdi 'KILDEID' : Uniqe identifisering av objektet i kilden</documentation>
            <documentation>Value 'KILDEID' : Uniqe identification of the objekt in the source</documentation>
        </annotation>
        <restriction base="string">
            <maxLength value="36" />
        </restriction>
    </simpleType>

   <simpleType name="ANTALL">
        <annotation>
            <documentation>Verdi 'ANTALL' : Antall objekter funnet</documentation>
            <documentation>Value 'ANTALL' : Number of objekts found</documentation>
        </annotation>
        <restriction base="int">
        </restriction>
    </simpleType>

   <simpleType name="ANTALLOBJ">
        <annotation>
            <documentation>Verdi 'J' : Tell kun antall objekter funnet</documentation>
            <documentation>Value 'N' : Treffliste</documentation>
			<documentation>Verdi 'J' : Number of objekts found</documentation>
            <documentation>Value 'N' : List of objekts</documentation>
        </annotation>
        <restriction base="string">
            <minLength value="1" />
            <maxLength value="1" />
        </restriction>
    </simpleType>	

	<simpleType name="VERSJON">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="DATOENDR">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="INNMELDATO">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="INNMELDKODE">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="KILDE">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="TABELLNAVN">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>
	
	<simpleType name="KJOEREDATO">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="KJOERENUMMER">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="MAXTREFF">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

  <simpleType name="SISTEKJORENR">
        <annotation>
            <documentation>Verdi 'J' : Vis kun siste kjørenr funnet</documentation>
            <documentation>Value 'N' : Vis flere kjørenr</documentation>
			<documentation>Verdi 'J' : Only last sequence number</documentation>
            <documentation>Value 'N' : Several sequence numbers</documentation>
        </annotation>
        <restriction base="string">
            <minLength value="1" />
            <maxLength value="1" />
        </restriction>
    </simpleType>

	<simpleType name="SCHEMANAVN">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="FILNAVN">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="ANTALL_TRANS">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="int">
        </restriction>
    </simpleType>

	<simpleType name="ANTALL_INSERT">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="int">
        </restriction>
    </simpleType>

	<simpleType name="ANTALL_UPDATE">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="int">
        </restriction>
    </simpleType>

	<simpleType name="ANTALL_DELETE">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="int">
        </restriction>
    </simpleType>

	<simpleType name="ANTALL_FEIL">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="int">
        </restriction>
    </simpleType>

	<simpleType name="STARTTID">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="STOPPTID">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

	<simpleType name="INDEKSERT">
        <annotation>
            <documentation>Verdi '' : </documentation>
            <documentation>Value '' : </documentation>
        </annotation>
        <restriction base="string">
        </restriction>
    </simpleType>

    <element name="hentPortefoeljeles">
        <complexType>
            <sequence>
                <element minOccurs="0" maxOccurs="1" name="request" type="tns:LESREQUEST"/>      
            </sequence>
        </complexType>
    </element>
	
	<element name="hentKildeles">
        <complexType>
            <sequence>
                <element minOccurs="0" maxOccurs="1" name="request" type="tns:LESKILDEREQUEST"/>      
            </sequence>
        </complexType>
    </element>
	
    <complexType name="redirect">
        <sequence>
            <element name="url" type="string"/>
            <element name="method" type="string"/>
            <element name="parametre">
                <complexType>
                    <sequence>
                        <element name="parameter" minOccurs="0" maxOccurs="unbounded">
                            <complexType>
                                <sequence>
                                    <element name="kode" type="string"/>
                                    <element name="verdi" type="string"/>
                                </sequence>
                            </complexType>
                        </element>
                    </sequence>
                </complexType>
            </element>
        </sequence>
    </complexType>

    <complexType name="LESREQUEST">
        <sequence>
            <element name="oppdragsid" type="tns:OPPDRAGSID" minOccurs="0"  maxOccurs="1"/>           
            <element name="egenid" type="tns:EGENID" minOccurs="0"  maxOccurs="1"/>
			<element name="evryid" type="tns:EVRYID" minOccurs="0"  maxOccurs="1"/>
			<element name="kildeid" type="tns:KILDEID" minOccurs="0"  maxOccurs="1"/>
			<element name="antallobj" type="tns:ANTALLOBJ" minOccurs="0"  maxOccurs="1"/>
        </sequence>
    </complexType>
 
    <complexType name="LESKILDEREQUEST">
        <sequence>
			<element name="kilde" type="tns:KILDE" minOccurs="0"  maxOccurs="1"/>
            <element name="tabellnavn" type="tns:TABELLNAVN" minOccurs="0"  maxOccurs="1"/>           
            <element name="kjoeredato" type="tns:KJOEREDATO" minOccurs="0"  maxOccurs="1"/>
			<element name="kjoerenummer" type="tns:KJOERENUMMER" minOccurs="0"  maxOccurs="1"/>
			<element name="maxtreff" type="tns:MAXTREFF" minOccurs="0"  maxOccurs="1"/>
			<element name="sistekjoerenr" type="tns:SISTEKJORENR" minOccurs="0"  maxOccurs="1"/>
        </sequence>
    </complexType>

    <complexType name="LESRESPONSE">
        <sequence>           
            <element minOccurs="0" maxOccurs="unbounded" name="OBJEKT">
                <complexType>	
                    <sequence>  
                        <element minOccurs="1" maxOccurs="1" name="OPPDRAGSID" type="tns:OPPDRAGSID"/>
                        <element minOccurs="1" maxOccurs="1" name="EGENID" type="tns:EGENID"/>
                        <element minOccurs="1" maxOccurs="1" name="EVRYID" type="tns:EVRYID"/>
                        <element minOccurs="1"  maxOccurs="1" name="KILDEID" type="tns:KILDEID"/>
						<element minOccurs="1"  maxOccurs="1" name="VERSJON" type="tns:VERSJON"/>
                        <element minOccurs="1"  maxOccurs="1" name="DATOENDR" type="tns:DATOENDR"/>
                        <element minOccurs="1"  maxOccurs="1" name="INNMELDATO" type="tns:INNMELDATO"/> 
                        <element minOccurs="1"  maxOccurs="1" name="INNMELDKODE" type="tns:INNMELDKODE"/>
                        <element minOccurs="1"  maxOccurs="1" name="KILDE" type="tns:KILDE"/>
                    </sequence>
                </complexType>
            </element>
            <element minOccurs="0" maxOccurs="1" name="OPPDRAGSID" type="tns:OPPDRAGSID"/>  
			<element minOccurs="0" maxOccurs="1" name="KILDE" type="tns:KILDE"/>
            <element minOccurs="0" maxOccurs="1" name="ANTALL" type="tns:ANTALL"/>
			<element minOccurs="0" maxOccurs="1" name="feil" type="tns:FEIL"/>  
        </sequence>
    </complexType>       	

   <complexType name="LESKILDERESPONSE">
        <sequence>           
            <element minOccurs="0" maxOccurs="unbounded" name="OBJEKT">
                <complexType>	
                    <sequence>
                        <element minOccurs="1"  maxOccurs="1" name="KILDE" type="tns:KILDE"/>
                        <element minOccurs="1"  maxOccurs="1" name="SCHEMANAVN" type="tns:SCHEMANAVN"/>
                        <element minOccurs="1"  maxOccurs="1" name="TABELLNAVN" type="tns:TABELLNAVN"/>
                        <element minOccurs="1"  maxOccurs="1" name="KJOERENUMMER" type="tns:KJOERENUMMER"/>
                        <element minOccurs="1"  maxOccurs="1" name="FILNAVN" type="tns:FILNAVN"/>
                        <element minOccurs="1"  maxOccurs="1" name="ANTALL_TRANS" type="tns:ANTALL_TRANS"/>
                        <element minOccurs="1"  maxOccurs="1" name="ANTALL_INSERT" type="tns:ANTALL_INSERT"/>
                        <element minOccurs="1"  maxOccurs="1" name="ANTALL_UPDATE" type="tns:ANTALL_UPDATE"/>
                        <element minOccurs="1"  maxOccurs="1" name="ANTALL_DELETE" type="tns:ANTALL_DELETE"/>
                        <element minOccurs="1"  maxOccurs="1" name="ANTALL_FEIL" type="tns:ANTALL_FEIL"/>
                        <element minOccurs="1"  maxOccurs="1" name="STARTTID" type="tns:STARTTID"/>
                        <element minOccurs="1"  maxOccurs="1" name="STOPPTID" type="tns:STOPPTID"/>
                        <element minOccurs="1"  maxOccurs="1" name="INDEKSERT" type="tns:INDEKSERT"/>
                        <element minOccurs="1"  maxOccurs="1" name="KJOEREDATO" type="tns:KJOEREDATO"/>
                    </sequence>
                </complexType>
            </element>
            <element minOccurs="0" maxOccurs="1" name="ANTALL" type="tns:ANTALL"/>
			<element minOccurs="0" maxOccurs="1" name="feil" type="tns:FEIL"/>  
        </sequence>
    </complexType>       	

   <complexType name="FEIL">
        <sequence>     
			<element type="string" name="feilgruppekode"/>
			<element type="string" name="feilgruppetekst"/>
			<element type="string" name="feilkode"/>
			<element type="string" name="feiltekst"/>
			<element type="string" name="feilmelding"/>
        </sequence>
    </complexType>

	<element name="Portefoeljeles">
        <complexType>	
            <sequence>
                <element minOccurs="0" name="RESPONSE" type="tns:LESRESPONSE"/>      
            </sequence>
        </complexType>
    </element>

	<element name="Kildeles">
        <complexType>
            <sequence>
                <element minOccurs="0" name="RESPONSE" type="tns:LESKILDERESPONSE"/>      
            </sequence>
        </complexType>
    </element>	
</schema>
