<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="urn:cz:isvs:rpp:schemas:RppDotazy:v1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:reg="urn:cz:isvs:reg:schemas:RegTypy:v1" xmlns:rpp="urn:cz:isvs:rpp:schemas:RppReg:v1" targetNamespace="urn:cz:isvs:rpp:schemas:RppDotazy:v1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.0">
    <xs:annotation>
        <xs:documentation xml:lang="cs">Návrh XML schématu s definicemi datových prvků IS RPP.
            Toto schéma obsahuje definice datových prvků používaných pro dotazování v (a)synchronním režimu
            na vybrané dotazy kategorie S1-S4 na interním rozhraní RPP a systému REZA.
        </xs:documentation>
    </xs:annotation>
    <!-- Verze 1.0.0, 12.11.2023 Presun datovych typu z RppDotazy.xsd-->
    <xs:import namespace="urn:cz:isvs:reg:schemas:RegTypy:v1" schemaLocation="../../RegTypy.xsd"/>
    <xs:import namespace="urn:cz:isvs:rpp:schemas:RppReg:v1" schemaLocation="RppReg.xsd"/>
    <xs:element name="RppAsyncDotazResponse" type="reg:OdpovedInfoType"/>
    <xs:complexType name="RppDotazAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Dotaz, předek.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodSluzby" type="rpp:KodRppSluzbyType"/>
            <xs:element name="ZadostInfo" type="reg:ZadostInfoType"/>
            <xs:element name="AutorizaceInfo" type="reg:AutorizaceType" minOccurs="0"/>
            <xs:element name="MapaAifo" type="reg:MapaAifoType" minOccurs="0"/>
            <xs:element name="SeznamIdAdres" type="reg:SeznamIdAdresType" minOccurs="0"/>
            <xs:element name="SeznamIco" type="reg:SeznamIcoType" minOccurs="0"/>
            <xs:element name="SeznamPrvku" type="reg:SeznamPrvkuType" minOccurs="0"/>
        </xs:sequence>
        <xs:attribute name="verzeZadosti" type="reg:VerzeType"/>
    </xs:complexType>
    <xs:complexType name="RppDotazIntAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Dotaz výhradně interní služby používané ISZR, předek.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodSluzby" type="rpp:KodRppSluzbyType"/>
            <xs:element name="CasZadosti" type="reg:CasovaZnackaType"/>
            <xs:element name="IszrZadostId" type="reg:IszrZadostIdType"/>
        </xs:sequence>
        <xs:attribute name="verzeZadosti" type="reg:VerzeType"/>
    </xs:complexType>
    <xs:complexType name="RppDotazResponseAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Odpověď na dotaz, předek.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodSluzby" type="rpp:KodRppSluzbyType"/>
            <xs:element name="OdpovedInfo" type="reg:OdpovedInfoType"/>
            <xs:element name="MapaAifo" type="reg:MapaAifoType" minOccurs="0"/>
            <xs:element name="SeznamIdAdres" type="reg:SeznamIdAdresType" minOccurs="0"/>
            <xs:element name="SeznamIco" type="reg:SeznamIcoType" minOccurs="0"/>
            <xs:element name="SeznamPrvku" type="reg:SeznamPrvkuType" minOccurs="0"/>
        </xs:sequence>
        <xs:attribute name="verzeZadosti" type="reg:VerzeType"/>
    </xs:complexType>
    <xs:complexType name="RppDotazIntResponseAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Odpověď na dotaz výhradně interní služby používané ISZR, předek.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodSluzby" type="rpp:KodRppSluzbyType"/>
            <xs:element name="CasOdpovedi" type="reg:CasovaZnackaType"/>
            <xs:element name="Status" type="reg:StatusType"/>
            <xs:element name="IszrZadostId" type="reg:IszrZadostIdType" minOccurs="0"/>
            <xs:element name="RegOdpovedId" type="reg:RegOdpovedIdType" minOccurs="0"/>
        </xs:sequence>
        <xs:attribute name="verzeZadosti" type="reg:VerzeType"/>
    </xs:complexType>
    <xs:complexType name="RppDotazDataAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Obálka pro data dotazu, předek.</xs:documentation>
        </xs:annotation>
        <xs:attribute name="verzeSluzby" type="reg:VerzeType"/>
    </xs:complexType>
    <xs:complexType name="RppDotazDataResponseAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Obálka pro data odpovědi na dotaz, předek.</xs:documentation>
        </xs:annotation>
        <xs:attribute name="verzeSluzby" type="reg:VerzeType"/>
    </xs:complexType>
</xs:schema>
