<?xml version="1.0"?>
<schema targetNamespace="http://ws.infotorg.no/xml/ErgoGroup/SammensatteRapporter/2017-11-09/SammensatteRapporter.xsd"
    xmlns:tns="http://ws.infotorg.no/xml/ErgoGroup/SammensatteRapporter/2017-11-09/SammensatteRapporter.xsd"
    xmlns:edr="http://ws.infotorg.no/xml/NE/EDROnline/2017-01-23/EDROnline.xsd"
    xmlns:enh="http://ws.infotorg.no/xml/Brreg/EnhetForetak/2012-08-27/EnhetForetak.xsd"
    xmlns:itp="http://ws.infotorg.no/xml/ErgoGroup/InfotorgPerson/2012-08-27/InfotorgPerson.xsd"
    xmlns:los="http://ws.infotorg.no/xml/Brreg/LoesoereOnline/2012-08-27/LoesoereOnline.xsd"
    xmlns:dbn="http://ws.infotorg.no/xml/DBNorge/DBOnline/2012-08-27/DBOnline.xsd"
    xmlns:srp1="http://ws.infotorg.no/xml/ErgoGroup/SammensatteRapporter/2012-08-30/SammensatteRapporter.xsd"
    xmlns:bbv="http://ws.infotorg.no/xml/EurotaxGlass/Bruktbilverdi/2012-08-27/Bruktbilverdi.xsd"
    xmlns:bbv2="http://ws.infotorg.no/xml/EurotaxGlass/Bruktbilverdi/2016-03-09/Bruktbilverdi.xsd"
    xmlns:aareg="http://ws.infotorg.no/xml/NAV/Aareg2/2015-09-21/Aareg2.xsd"
    xmlns:ofv="http://ws.infotorg.no/xml/ErgoGroup/OFVBildata/2016-03-03/OFVBildata.xsd"
    xmlns:dsm="http://ws.infotorg.no/xml/SVV/DetSentraleMotorvognregisteret/2012-08-27/DetSentraleMotorvognregisteret.xsd"
    xmlns:dsm2="http://ws.infotorg.no/xml/SVV/DetSentraleMotorvognregisteret/2013-08-06/DetSentraleMotorvognregisteret.xsd"
    xmlns:sbr="http://ws.infotorg.no/xml/Redningsselskapet/Smaabaatregisteret/2012-02-23/Smaabaatregisteret.xsd"
    xmlns:itf="http://ws.infotorg.no/xml/EVRY/InfotorgForetak/2015-12-01/InfotorgForetak.xsd"
    xmlns:itk="http://ws.infotorg.no/xml/EVRY/InfotorgKjoeretoey/2013-10-07/InfotorgKjoeretoey.xsd"
    xmlns:feil="http://ws.infotorg.no/xml/Feil/Feil.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">

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

            © 2012 EVRY ASA
            Forfatter: Dag Lem &lt;dag@nimrod.no&gt;
            Forfatter: Øivind Stensrud &lt;oivind.stensrud@evry.com&gt;
        </documentation>
    </annotation>

    <import
        namespace="http://ws.infotorg.no/xml/Brreg/EnhetForetak/2012-08-27/EnhetForetak.xsd"
        schemaLocation="https://ws.infotorg.no/xml/Brreg/EnhetForetak/2012-08-27/EnhetForetak.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/ErgoGroup/InfotorgPerson/2012-08-27/InfotorgPerson.xsd"
        schemaLocation="https://ws.infotorg.no/xml/ErgoGroup/InfotorgPerson/2012-08-27/InfotorgPerson.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/Brreg/LoesoereOnline/2012-08-27/LoesoereOnline.xsd"
        schemaLocation="https://ws.infotorg.no/xml/Brreg/LoesoereOnline/2012-08-27/LoesoereOnline.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/DBNorge/DBOnline/2012-08-27/DBOnline.xsd"
        schemaLocation="https://ws.infotorg.no/xml/DBNorge/DBOnline/2012-08-27/DBOnline.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/NE/EDROnline/2017-01-23/EDROnline.xsd"
        schemaLocation="https://ws.infotorg.no/xml/NE/EDROnline/2017-01-23/EDROnline.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/EurotaxGlass/Bruktbilverdi/2012-08-27/Bruktbilverdi.xsd"
        schemaLocation="https://ws.infotorg.no/xml/EurotaxGlass/Bruktbilverdi/2012-08-27/Bruktbilverdi.xsd"/>
    <import
            namespace="http://ws.infotorg.no/xml/EurotaxGlass/Bruktbilverdi/2016-03-09/Bruktbilverdi.xsd"
            schemaLocation="https://ws.infotorg.no/xml/EurotaxGlass/Bruktbilverdi/2016-03-09/Bruktbilverdi.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/NAV/Aareg2/2015-09-21/Aareg2.xsd"
        schemaLocation="https://ws.infotorg.no/xml/NAV/Aareg2/2015-09-21/Aareg2.xsd"/>    
    <import
        namespace="http://ws.infotorg.no/xml/ErgoGroup/OFVBildata/2016-03-03/OFVBildata.xsd"
        schemaLocation="https://ws.infotorg.no/xml/ErgoGroup/OFVBildata/2016-03-03/OFVBildata.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/SVV/DetSentraleMotorvognregisteret/2012-08-27/DetSentraleMotorvognregisteret.xsd"
        schemaLocation="https://ws.infotorg.no/xml/SVV/DetSentraleMotorvognregisteret/2012-08-27/DetSentraleMotorvognregisteret.xsd"/>
    <import
            namespace="http://ws.infotorg.no/xml/SVV/DetSentraleMotorvognregisteret/2013-08-06/DetSentraleMotorvognregisteret.xsd"
            schemaLocation="https://ws.infotorg.no/xml/SVV/DetSentraleMotorvognregisteret/2013-08-06/DetSentraleMotorvognregisteret.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/Redningsselskapet/Smaabaatregisteret/2012-02-23/Smaabaatregisteret.xsd"
        schemaLocation="https://ws.infotorg.no/xml/Redningsselskapet/Smaabaatregisteret/2012-02-23/Smaabaatregisteret.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/EVRY/InfotorgForetak/2015-12-01/InfotorgForetak.xsd"
        schemaLocation="https://ws.infotorg.no/xml/EVRY/InfotorgForetak/2015-12-01/InfotorgForetak.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/EVRY/InfotorgKjoeretoey/2013-10-07/InfotorgKjoeretoey.xsd"
        schemaLocation="https://ws.infotorg.no/xml/EVRY/InfotorgKjoeretoey/2013-10-07/InfotorgKjoeretoey.xsd"/>
    <import
            namespace="http://ws.infotorg.no/xml/ErgoGroup/SammensatteRapporter/2012-08-30/SammensatteRapporter.xsd"
            schemaLocation="https://ws.infotorg.no/xml/ErgoGroup/SammensatteRapporter/2012-08-30/SammensatteRapporter.xsd"/>
    <import
        namespace="http://ws.infotorg.no/xml/Feil/Feil.xsd"
        schemaLocation="https://ws.infotorg.no/xml/Feil/Feil.xsd"/>

    <complexType name="transaksjoner">
        <sequence>
            <element name="transaksjon" minOccurs="0" maxOccurs="unbounded">
                <complexType>
                    <sequence>
                        <element name="tjeneste" type="string"/>
                        <element name="produkt" type="string"/>
                        <element name="feil" type="feil:feil" minOccurs="0"/>
                    </sequence>
                </complexType>
            </element>
        </sequence>
    </complexType>

    <simpleType name="jaNeiListe">
          <restriction base="string">
            <enumeration value="Ja"/>
            <enumeration value="Nei"/>
           </restriction>
    </simpleType>

    <element name="hentFirmaattestOnline" type="tns:hentFirmaattestOnline"/>
    <element name="FirmaattestOnline" type="tns:FirmaattestOnline"/>

    <!-- Søk mot EnhetForetak / InfotorgPerson -->
    <element name="Kontaktopplysninger" type="tns:Kontaktopplysninger"/> 
    <complexType name="Kontaktopplysninger">
        <choice>
            <element ref="enh:BasisdataMini"/>
            <element ref="itp:FoedselsnrKildeSoek"/>
        </choice>
    </complexType>

    <element name="hentKontaktopplysninger">
        <complexType>
            <choice>
                <element name="orgnr" type="string"/>
                <element name="foedselsnr" type="string"/>
                <element name="anonymid" type="string"/>
            </choice>
        </complexType>
    </element>
    
    <complexType name="hentFirmaattestOnline">
        <sequence>
            <element name="orgnr" type="string"/>
        </sequence>
    </complexType>

    <complexType name="FirmaattestOnline">
        <sequence>
            <choice>
                <element ref="itf:HovedinformasjonPrivat"/>
                <element ref="itf:HovedinformasjonOffentlig"/>
            </choice>
            <element ref="itf:Rolleutskrift_v1"/>
        </sequence>
    </complexType>

    <element name="hentBroennoeysundrapporten" type="tns:hentBroennoeysundrapporten"/>
    <element name="Broennoeysundrapporten" type="tns:Broennoeysundrapporten"/>

    <complexType name="hentBroennoeysundrapporten">
        <sequence>
            <element name="orgnr" type="string"/>
            <element name="opplystOmGjenpartsbrev" type="tns:jaNeiListe" minOccurs="0"/>
        </sequence>
    </complexType>

    <complexType name="Broennoeysundrapporten">
        <choice>
            <sequence>
                <choice>
                    <element ref="enh:Basisdata"/>
                    <element ref="enh:BasisdataFdato"/>
                </choice>
                <element ref="enh:BedrifterVirksomheter"/>
                <element ref="enh:Kontaktdata"/>
                <element ref="enh:OpplTilknRegister"/>
                <choice>
                    <element ref="enh:ProkuraSignatur"/>
                    <element ref="enh:ProkuraSignaturFdato"/>
                </choice>
                <choice>
                    <element ref="enh:Roller"/>
                    <element ref="enh:RollerFdato"/>
                </choice>
                <element ref="enh:SaerligeOpplysninger"/>
                <element ref="enh:Konsern"/>
                <element ref="los:HeftelserForetak"/>
                <!--<element ref="dbn:ForetakNoekkeltall"/>-->
                <element ref="itf:ResultatregnskapOgBalanse"/>
            </sequence>
            <element ref="dbn:Foretaksoek"/>
        </choice>
    </complexType>

    <element name="Bilrapporten" type="tns:Bilrapporten"/>
    <element name="hentBilrapporten" type="bbv:hentMotorvognopplysninger"/>

    <complexType name="Bilrapporten">
        <sequence>
            <element ref="bbv:Motorvognopplysninger"/>
            <element ref="los:HeftelserMotorvogn"/>
        </sequence>
    </complexType>

    <element name="Bilrapporten_v1" type="tns:Bilrapporten_v1"/>
    <element name="hentBilrapporten_v1" type="bbv2:hentForenkletBilverdi"/>

    <complexType name="Bilrapporten_v1">
        <sequence>
            <element ref="bbv2:ForenkletBilverdi"/>
            <element ref="los:HeftelserMotorvogn"/>
        </sequence>
    </complexType>

    <element name="Bilrapporten_v3" type="tns:Bilrapporten_v3"/>
    <element name="hentBilrapporten_v3" type="tns:hentBilrapporten_v3"/>
    <complexType name="hentBilrapporten_v3">
        <sequence>
            <choice>
                <sequence>
                    <element name="regnr" type="string" maxOccurs="1"/>
                    <element name="kmstand" type="string" minOccurs="0" maxOccurs="1"/>
                </sequence>
                <element name="foedselsnr" type="string" maxOccurs="1"/>
                <element name="orgnr" type="string" maxOccurs="1"/>
            </choice>
        </sequence>
    </complexType>

    <complexType name="Bilrapporten_v3">
        <sequence>
            <choice>
                <sequence>
                    <element ref="bbv2:ForenkletBilverdi"/>
                    <element ref="los:HeftelserMotorvogn"/>
                    <element ref="itk:TekniskeData"/>
                    <element ref="ofv:Regnrsoek_v3"/>
                    <element ref="dsm2:Regnrsoek" minOccurs="0"/>
                    <!--<element ref="sbr:Baatsoek"/>-->
                </sequence>
                <sequence>
                    <element ref="dsm2:FoedselsnrOrgnrsoek"/>
                    <!--<element ref="sbr:Baatsoek" minOccurs="0" maxOccurs="1"/>-->
                </sequence>
            </choice>
        </sequence>
    </complexType>

    <!-- Sammensatte produkter som kan nås via andre tjenester men som
         alltid skal debiteres under Multisoek.
         InfotorgPerson/MultisoekPerson og EnhetForetak/FirmaattestOnline
         er definert i hhv. InfotorgPerson og EnhetForetak. -->

    <!-- EDR / LOS / AAREG -->
    <element name="hentHeftelserEiendeler" type="tns:hentHeftelserEiendeler"/>
    <element name="HeftelserEiendeler" type="tns:HeftelserEiendeler"/>

    <complexType name="hentHeftelserEiendeler">
        <choice>
            <sequence>
                <element name="kommunenr" type="string"/>
                <element name="gaardsnr" type="string"/>
                <element name="bruksnr" type="string"/>
                <element name="festenr" type="string" minOccurs="0"/>
                <element name="seksjonsnr" type="string" minOccurs="0"/>
            </sequence>
            <sequence>
                <choice>
                    <element name="foedselsnr" type="string"/>
                    <element name="orgnr" type="string"/>
                    <element name="loepenr" type="string"/>
                    <element name="anonymid" type="string"/>
                </choice>
            </sequence>
        </choice>
    </complexType>

    <complexType name="HeftelserEiendeler">
        <choice>
            <element ref="tns:statusmelding"/>
            <sequence>
                <element ref="edr:Hjemmel" minOccurs="0"/>
                <element ref="tns:FastEiendomBorett" minOccurs="0"/>
                <element ref="tns:FastEiendomBorett_v2" minOccurs="0"/>
                <choice minOccurs="0">
                    <element ref="itp:FoedselsnrKildeSoek" minOccurs="0"/>
                    <element ref="enh:BasisdataMini" minOccurs="0"/>
                </choice>
                <choice minOccurs="0">
                    <element ref="los:HeftelserForetak" minOccurs="0"/>
                    <element ref="los:HeftelserPerson" minOccurs="0"/>
                </choice>
            </sequence>
        </choice>
    </complexType>

    <!-- EDR -->
    <element name="hentHjemmelHeftelser" type="tns:matrikkelSoek"/>
    <element name="HjemmelHeftelser" type="tns:HjemmelHeftelser"/>

    <complexType name="HjemmelHeftelser">
        <sequence>
           <element ref="edr:Pengeheftelser" minOccurs="0"/>
           <element ref="edr:Servitutter" minOccurs="0"/>
           <element ref="edr:Hjemmel" minOccurs="0"/>
           <element ref="itp:FoedselsnrKildeSoek" minOccurs="0" maxOccurs="4"/>
           <element ref="enh:BasisdataMini" minOccurs="0" maxOccurs="4"/>
        </sequence>
    </complexType>

    <element name="hentFastEiendomBorett">
        <complexType>
            <sequence>
                <choice>
                    <element name="orgnr" type="string"/>
                    <element name="foedselsnr" type="string"/>
                    <element name="loepenr" type="string"/>
                    <element name="anonymid" type="string"/>
                </choice>
            </sequence>
        </complexType>
    </element>

    <element name="FastEiendomBorett">
        <complexType>
            <sequence minOccurs="0">
                <element ref="edr:OversiktLand"/>
                <element ref="edr:Andelsoversikt"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentFastEiendomBorett_v2">
        <complexType>
            <sequence>
                <choice>
                    <element name="orgnr" type="string"/>
                    <element name="foedselsnr" type="string"/>
                    <element name="loepenr" type="string"/>
                    <element name="anonymid" type="string"/>
                </choice>
            </sequence>
        </complexType>
    </element>

    <element name="FastEiendomBorett_v2">
        <complexType>
            <sequence minOccurs="0">
                <element ref="edr:FastEiendomBorett_v2"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentUtskriftElektronisk" type="tns:matrikkelSoek"/>
    <element name="UtskriftElektronisk" type="tns:UtskriftElektronisk"/>

    <complexType name="UtskriftElektronisk">
        <sequence>
            <sequence minOccurs="0">
                <element ref="edr:Hjemmel"/>
                <element ref="edr:Pengeheftelser"/>
                <element ref="edr:Servitutter"/>
                <element ref="edr:Leieavtaler"/>
                <element ref="edr:Festeavtaler"/>
            </sequence>
            <element ref="edr:Grunndata"/>
        </sequence>
    </complexType>

    <element name="hentUtskriftElektronisk_v2" type="tns:matrikkelSoek"/>
    <element name="UtskriftElektronisk_v2" type="tns:UtskriftElektronisk_v2"/>

    <complexType name="UtskriftElektronisk_v2">
        <sequence>
            <choice>
                <element ref="edr:FinnesMatrikkelen"/>
                <element ref="edr:OppslagFastEiendomMedRettighet"/>
            </choice>
            <element ref="itp:FoedselsnrKildeSoek" minOccurs="0" maxOccurs="4"/>
            <element ref="enh:BasisdataMini" minOccurs="0" maxOccurs="4"/>
        </sequence>
    </complexType>

    <element name="hentUtskriftElektronisk_v3" type="tns:matrikkelSoek"/>
    <element name="UtskriftElektronisk_v3" type="tns:UtskriftElektronisk_v3"/>

    <complexType name="UtskriftElektronisk_v3">
        <sequence>
            <choice>
                <element ref="edr:FinnesMatrikkelen"/>
                <sequence>
                    <element ref="edr:OppslagFastEiendomMedRettighet"/>
                    <element ref="edr:Eiendom_v2"/>
                    <element ref="edr:Bygning_v2"/>
                    <element ref="edr:Adresse_v2"/>
                </sequence>
            </choice>
            <element ref="itp:FoedselsnrKildeSoek" minOccurs="0" maxOccurs="4"/>
            <element ref="enh:BasisdataMini" minOccurs="0" maxOccurs="4"/>
        </sequence>
    </complexType>

    <complexType name="matrikkelSoek">
        <sequence>
            <element name="kommunenr" type="string"/>
            <element name="gaardsnr" type="string"/>
            <element name="bruksnr" type="string"/>
            <element name="festenr" type="string" minOccurs="0"/>
            <element name="seksjonsnr" type="string" minOccurs="0"/>
        </sequence>
    </complexType>

    <!-- ITP -->
    <element name="hentTotalrapportPerson" type="tns:hentTotalrapportPerson"/>
    <element name="TotalrapportPerson" type="tns:TotalrapportPerson"/>

    <complexType name="hentTotalrapportPerson">
        <sequence>
            <element name="personid" type="string"/>
        </sequence>
    </complexType>

    <complexType name="TotalrapportPerson">
        <sequence>
            <element ref="tns:LigningsrapportBetAnm"/>
            <element ref="dbn:PersonNaeringsInteresser"/>
            <element ref="edr:OversiktLand"/>
            <element ref="edr:Andelsoversikt"/>
            <element ref="los:HeftelserPerson"/>
            <element ref="itp:Telefonnummer"/>
        </sequence>
    </complexType>

    <element name="hentBetalingsanmerkninger" type="tns:hentBetalingsanmerkninger"/>
    <element name="Betalingsanmerkninger" type="tns:Betalingsanmerkninger"/>

    <complexType name="hentBetalingsanmerkninger">
        <sequence>
            <element name="personid" type="string"/>
        </sequence>
    </complexType>

    <complexType name="Betalingsanmerkninger">
        <sequence>
            <choice>
                <element ref="itp:Foedselsnrsoek"/>
                <element ref="itp:PersonKildeSoek"/>
            </choice>
            <element ref="dbn:PersonBetalingsanmerkninger"/>
        </sequence>
    </complexType>

    <element name="hentLigningsrapportBetAnm" type="tns:hentLigningsrapportBetAnm"/>
    <element name="LigningsrapportBetAnm" type="tns:LigningsrapportBetAnm"/>

    <complexType name="hentLigningsrapportBetAnm">
        <sequence>
            <element name="personid" type="string"/>
        </sequence>
    </complexType>

    <complexType name="LigningsrapportBetAnm">
        <sequence>
            <element ref="itp:Ligningsrapport"/>
            <element ref="dbn:PersonBetalingsanmerkninger"/>
        </sequence>
    </complexType>

    <!-- ITP / AAREG -->
    <element name="hentMultisoekPerson" type="tns:hentMultisoekPerson"/>
    <element name="MultisoekPerson" type="tns:MultisoekPerson"/>

    <complexType name="hentMultisoekPerson">
        <sequence>
            <choice>
                <element name="foedselsnr" type="string"/>
                <element name="personid" type="string"/>
                <sequence>
                    <element name="fornavn" type="string"/>
                    <element name="etternavn" type="string" minOccurs="0"/>
                </sequence>
                <element name="etternavn" type="string"/>
            </choice>
            <element name="foedselsdato" type="string" minOccurs="0"/>
            <element name="minAlder" type="int" minOccurs="0"/>
            <element name="maxAlder" type="int" minOccurs="0"/>
            <element name="gatenavn" type="string" minOccurs="0"/>
            <element name="husnr" type="int" minOccurs="0"/>
            <element name="bokstav" type="string" minOccurs="0"/>
            <element name="oppgang" type="string" minOccurs="0"/>
            <element name="postboksnr" type="string" minOccurs="0"/>
            <element name="postkontor" type="string" minOccurs="0"/>
            <element name="postnr" type="string" minOccurs="0"/>
            <element name="poststed" type="string" minOccurs="0"/>
            <element name="kommunenr" type="string" minOccurs="0"/>
            <element name="kommune" type="string" minOccurs="0"/>
            <element name="fonetisk" type="string" minOccurs="0"/>
        </sequence>
    </complexType>
    <complexType name="MultisoekPerson">
        <sequence>
            <element name="transaksjoner" type="tns:transaksjoner"/>
            <choice>
                <element ref="itp:FoedselsnrKildeSoek"/>
                <element ref="itp:PersonKildeSoek"/>
            </choice>
            <element name="tjenester" type="tns:tjenester"/>
        </sequence>
    </complexType>

    <complexType name="tjenester">
        <sequence>
            <element name="Aareg2" type="string"/>
            <element name="DBOnline" type="string"/>
            <element name="EDROnline" type="string"/>
            <element name="LoesoereOnline" type="string"/>
        </sequence>
    </complexType>

    <!-- Statusmelding -->
    <element name="statusmelding">
        <complexType>
            <sequence>
                <element name="kode" type="string" minOccurs="1" maxOccurs="1"/>
                <element name="tekst" type="string" minOccurs="1" maxOccurs="1"/>
            </sequence>
        </complexType>
    </element>

    <element name="hentKemnerrapport" type="tns:fnrNavnPostnr"/>
    <element name="hentInkassorapport" type="tns:fnrNavnPostnr"/>

    <complexType name="fnrNavnPostnr">
        <sequence>
            <element name="foedselsnr" type="string"/>
            <element name="fornavn" type="string" minOccurs="0"/>
            <element name="mellomnavn" type="string" minOccurs="0"/>
            <element name="etternavn" type="string" minOccurs="0"/>
            <element name="postnr" type="string" minOccurs="0"/>
        </sequence>
    </complexType>

    <element name="Kemnerrapport">
        <complexType>
            <sequence>
                <element ref="edr:Matrikkelbekreftelse"/>
                <element ref="edr:Andelsbekreftelse"/>
                <element ref="los:StatusPerson"/>
                <choice>
                    <element ref="sbr:Eierdetaljer"/>
                    <element name="sbrMelding" type="tns:feilmelding"/>
                </choice>
                <element ref="itf:Rolleutskrift_v1"/>
                <element ref="aareg:Arbeidstaker"/>
                <element ref="itp:FoedselsnrKildeSoek"/>
                <element ref="dsm:FoedselsnrOrgnrsoek"/>
                <element ref="bbv:Motorvognopplysninger"/>
            </sequence>
        </complexType>
    </element>

    <element name="Inkassorapport">
        <complexType>
            <sequence>
                <element ref="edr:Matrikkelbekreftelse"/>
                <element ref="edr:Andelsbekreftelse"/>
                <element ref="los:StatusPerson"/>
                <choice>
                    <element ref="sbr:Eierdetaljer"/>
                    <element name="sbrMelding" type="tns:feilmelding"/>
                </choice>
                <element ref="itf:Rolleutskrift_v1"/>
                <element ref="itp:FoedselsnrKildeSoek"/>
                <choice>
                    <choice>
                        <element ref="dsm:FoedselsnrOrgnrsoek"/>
                        <element ref="dsm:Navnesoek"/>
                        <element ref="dsm:NavnesoekFors"/>
                    </choice>
                    <element name="dsmMelding" type="tns:feilmelding"/>
                </choice>
                <element ref="sbr:Baatsoek" minOccurs="0"/>
            </sequence>
        </complexType>
    </element>

    <complexType name="InsuranceDataReport">
        <sequence>
            <element ref="tns:Inkassorapport" minOccurs="0"/>
            <element ref="srp1:Broennoeysundrapporten" minOccurs="0"/>
            <element ref="dsm:FoedselsnrOrgnrsoek" minOccurs="0"/>
            <element ref="sbr:Eierdetaljer" minOccurs="0"/>
            <element name="sbrMelding" type="tns:feilmelding" minOccurs="0"/>
        </sequence>
    </complexType>

    <element name="hentInsuranceDataReport" type="tns:hentInsuranceDataReport"/>
    <element name="InsuranceDataReport" type="tns:InsuranceDataReport"/>

    <complexType name="hentInsuranceDataReport">
        <sequence>
            <element name="foedselsnr" type="string" minOccurs="0"/>
            <element name="orgnr" type="string" minOccurs="0"/>
            <element name="etternavn" type="string" minOccurs="0"/>
            <element name="fornavn" type="string" minOccurs="0"/>
            <element name="mellomnavn" type="string" minOccurs="0"/>
            <element name="adresse" type="string" minOccurs="0"/>
            <element name="husnr" type="tns:Thusnr" minOccurs="0"/>
            <element name="bokstav" type="string" minOccurs="0"/>
            <element name="gatenr" type="string" minOccurs="0"/>
            <element name="postnr" type="string" minOccurs="0"/>
        </sequence>
    </complexType>

    <simpleType name="Thusnr">
        <restriction base="string">
            <annotation>
                <documentation>Lengde 4</documentation>
                <documentation>Length 4</documentation>
            </annotation>
            <pattern value="[0-9]{0,4}"/>
        </restriction>
    </simpleType>

    <complexType name="feilmelding">
        <sequence>
            <element name="feilkode" type="int"/>
            <element name="feiltekst" type="string"/>
        </sequence>
    </complexType>
</schema>
