<?xml version="1.0"?>
<schema targetNamespace="http://ws.infotorg.no/xml/ErgoGroup/AjourEnhetForetak/2013-02-15/AjourEnhetForetak.xsd"
    xmlns:tns="http://ws.infotorg.no/xml/ErgoGroup/AjourEnhetForetak/2013-02-15/AjourEnhetForetak.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema">
    
    <annotation>
        <documentation xml:lang="no">
            © 2013 EVRY ASA
        </documentation>
    </annotation>
    
    <simpleType name="KUNDENR">
        <annotation>
            <documentation>Verdi 'KUNDENR'</documentation>
            <documentation>Value 'KUNDENR'</documentation>
            <documentation>Lengde 6</documentation>
        </annotation>
        <restriction base="string"/>
    </simpleType>
    
    <simpleType name="AVDELING">
        <annotation>
            <documentation>Verdi 'AVDELING'</documentation>
            <documentation>Value 'AVDELING'</documentation>
        </annotation>
        <restriction base="string">
            <maxLength value="6" />
        </restriction>
    </simpleType>
    
    <simpleType name="KUNDEID">
        <annotation>
            <documentation>Verdi 'KUNDEID'</documentation>
            <documentation>Value 'KUNDEID'</documentation>
        </annotation>
        <restriction base="string">
            <maxLength value="16" />
        </restriction>
    </simpleType>
    
    <simpleType name="ORGNR">
        <annotation>
            <documentation>Verdi 'ORGNR'. Gyldig organisasjonsnummer.</documentation>
            <documentation>Value 'ORGNR'. Valid organization number.</documentation>
        </annotation>
        <restriction base="string">
            <maxLength value="11" />
        </restriction>
    </simpleType>
    
    
    <simpleType name="AJOURHKD">
        <annotation>
            <documentation>Verdi 'AJOURHKD'. Verdi 'I', blank: Innmelding. Verdi 'S': Sletting.</documentation>
            <documentation>Value 'AJOURHKD'. Value 'I', blank: Reported in. Value 'S': Deleting.</documentation>
        </annotation>
        <restriction base="string">
            <maxLength value="1" />
        </restriction>
    </simpleType>

    <simpleType name="SAKSREF">
        <annotation>
            <documentation>Verdi 'SAKSREF'</documentation>
            <documentation>Value 'SAKSREF'</documentation>
        </annotation>
        <restriction base="string" />
    </simpleType>
    
    <element name="hentPortefoeljeOppdaterEnhet">
        <complexType>
            <sequence>
                <element minOccurs="0" maxOccurs="1" name="request" type="tns:REQUEST"/>      
            </sequence>
        </complexType>
    </element>

    <complexType name="REQUEST">
        <sequence>
            <element name="kundenr" type="tns:KUNDENR" minOccurs="0"  maxOccurs="1"/>
            <element name="avdeling" type="tns:AVDELING" minOccurs="0"  maxOccurs="1"/>
            <element name="kundeid" type="tns:KUNDEID" minOccurs="1"  maxOccurs="1"/>
            <element name="orgnr" type="tns:ORGNR" minOccurs="1"  maxOccurs="1"/>
            <element name="ajourhkd" type="tns:AJOURHKD" minOccurs="0"  maxOccurs="1"/>
            <element name="saksref" type="tns:SAKSREF" minOccurs="0"  maxOccurs="1"/>
        </sequence>
    </complexType>

    <element name="PortefoeljeOppdaterEnhet">
        <complexType>	
            <sequence>
                <element minOccurs="0" maxOccurs="1" name="RESPONSE" type="tns:RESPONSE"/>      
            </sequence>
        </complexType>
    </element>

    <complexType name="RESPONSE">
        <sequence>
            <element minOccurs="0" maxOccurs="1" name="KUNDENR" type="tns:KUNDENR"/>             
            <element minOccurs="0" maxOccurs="1" name="AVDELING" type="tns:AVDELING"/>
            <element minOccurs="0" maxOccurs="1" name="KUNDEID" type="tns:KUNDEID"/>
            <element minOccurs="0" maxOccurs="1" name="ORGNR" type="tns:ORGNR"/>
            <element minOccurs="0" maxOccurs="1" name="AJOURHKD" type="tns:AJOURHKD"/>
	    <element minOccurs="0" maxOccurs="1" name="SAKSREF" type="tns:SAKSREF"/>
        </sequence>
    </complexType>
    
</schema>
