<xs:schema xmlns="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pers="http://ivis.eps.gov.lv/XMLSchemas/100001/Person/v1-0" xmlns:pr="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" xmlns:ivis="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" xmlns:epcs="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0" targetNamespace="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="GetResidencePermitOfficeList.xsd">
  <xs:annotation>
    <xs:appinfo>
      <ivis:Metadata>
        <ivis:Contributor CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</ivis:Contributor>
        <ivis:Creator CodeListCodeValue="100010">Pilsonības un migrācijas lietu pārvalde</ivis:Creator>
        <ivis:Date>
          <ivis:Created>2013-10-11Z</ivis:Created>
          <ivis:Modified>2020-05-14Z</ivis:Modified>
        </ivis:Date>
        <ivis:Description>
          <ivis:Default>TUA saņemšanas iestāžu saraksta izgūšana no VMIS</ivis:Default>
        </ivis:Description>
        <ivis:Format>
          <ivis:Default>text/xml</ivis:Default>
        </ivis:Format>
        <ivis:Identifier Scheme="URN">URN:IVIS:100001:XSD-PopulationRegister-GetResidencePermitOfficeList-v1-0</ivis:Identifier>
        <ivis:Language>LV</ivis:Language>
        <ivis:Publisher CodeListCodeValue="100001">Valsts informācijas sistēmu savietotājs (VISS)</ivis:Publisher>
        <ivis:Relation>
          <ivis:ConformsTo Href="URN:IVIS:100001:DOC-FR-XML">XML shēmu izstrādes vadlīnijas</ivis:ConformsTo>
        </ivis:Relation>
        <ivis:Status>
          <ivis:Default>PUBLISHED</ivis:Default>
          <ivis:Version>1.0</ivis:Version>
        </ivis:Status>
        <ivis:Subject>
          <ivis:Category>Infrastruktūra</ivis:Category>
          <ivis:Keyword>PLMP</ivis:Keyword>
        </ivis:Subject>
        <ivis:Title>
          <ivis:Default>GetResidencePermitOfficeList</ivis:Default>
        </ivis:Title>
      </ivis:Metadata>
    </xs:appinfo>
  </xs:annotation>
  <xs:include schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100010/PopulationRegister/v1-0/CMISARI.xsd" />
  <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100001/IVIS/v1-0/IVISService.xsd" />
  <xs:import namespace="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0" schemaLocation="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0/EServiceInstance.xsd" />
  <!--
    TUA saņemšanas iestāžu saraksta izgūšanai no Iedzīvotāju reģistra
  -->
  <xs:complexType name="CMISRequestStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">CMIS pieprasījuma autorizēšanas struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">CMISARI sesijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EServiceInstance" type="epcs:EServiceInstanceStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">ePakalpojuma instance</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CMISRequest" type="CMISRequestStructure">
    <xs:annotation>
      <xs:documentation>CMIS pieprasījuma autorizēšana</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="GetResidencePermitOfficeListResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">TUA saņemšanas iestāžu saraksta pieprasījuma rezultāta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SessionId" type="CMISARISessionIdType" minOccurs="0">
        <xs:annotation>
          <xs:documentation xml:lang="lv">Sesijas identifikators</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="Error" type="ivis:ErrorStructure">
          <xs:annotation>
            <xs:documentation xml:lang="lv">Kļūda</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="ResidencePermitOfficeList" type="ResidencePermitOfficeListStructure">
          <xs:annotation>
            <xs:documentation xml:lang="lv">TUA saņemšanas iestāžu saraksts</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GetResidencePermitOfficeListResponse" type="GetResidencePermitOfficeListResponseStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">TUA saņemšanas iestāžu saraksta izgūšanas rezultāts</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="ResidencePermitOfficeStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">TUA saņemšanas iestādes struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Name" type="xs:string">
        <xs:annotation>
          <xs:documentation xml:lang="lv">TUA saņemšanas iestādes nosaukums</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Code" type="xs:string">
        <xs:annotation>
          <xs:documentation xml:lang="lv">TUA saņemšanas iestādes kods</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ResidencePermitOfficeListStructure">
    <xs:annotation>
      <xs:documentation xml:lang="lv">TUA saņemšanas iestāžu saraksta struktūra</xs:documentation>
    </xs:annotation>
    <xs:sequence maxOccurs="unbounded">
      <xs:element name="ResidencePermitOffice" type="ResidencePermitOfficeStructure">
        <xs:annotation>
          <xs:documentation xml:lang="lv">TUA saņemšanas iestāde</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ResidencePermitOfficeList" type="ResidencePermitOfficeListStructure">
    <xs:annotation>
      <xs:documentation>TUA saņemšanas iestāžu saraksts</xs:documentation>
    </xs:annotation>
  </xs:element>
</xs:schema>