<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:tgen="http://insiel.webservices.protocollo.pubblici.saga.it/protocollo/schemixsd/tipiGenerali" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
targetNamespace="http://insiel.webservices.protocollo.pubblici.saga.it/protocollo/schemixsd/tipiGenerali"
 elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:simpleType name="progMovi">
		<xs:restriction base="xs:integer"/>
	</xs:simpleType>
	<xs:simpleType name="progDoc">
		<xs:restriction base="xs:long"/>
	</xs:simpleType>
	<xs:simpleType name="oggetto">
		<xs:restriction base="xs:string">
			<xs:maxLength value="4000"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="note">
		<xs:restriction base="xs:string">
			<xs:maxLength value="2000"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="anno">
		<xs:restriction base="xs:nonNegativeInteger"/>
	</xs:simpleType>
	<xs:simpleType name="numero">
		<xs:restriction base="xs:positiveInteger"/>
	</xs:simpleType>
	<xs:simpleType name="subNumero">
		<xs:restriction base="xs:string">
			<xs:maxLength value="40"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="numRiferim">
		<xs:restriction base="xs:string">
			<xs:maxLength value="40"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="verso">
		<xs:restriction base="xs:string">
			<xs:enumeration value="P"/>
			<xs:enumeration value="A"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PraticaAC">
		<xs:restriction base="xs:string">
			<xs:enumeration value="agliAtti"/>
			<xs:enumeration value="inEvidenza"/>
			<xs:enumeration value="altro"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stato">
		<xs:annotation>
			<xs:documentation>0 attivo, 1 disattivato/annullato</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer"/>
	</xs:simpleType>
	<xs:simpleType name="tipoMittenteMail">
		<xs:annotation>
			<xs:documentation>
		             0 = ufficio operante (default)
		             1 = ufficio del registro
		             2 = terminalista
		             3 = primo mittente (solo per la protocollazione in partenza)
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="1"/>
			<xs:minInclusive value="-1"/>
			<xs:maxInclusive value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="livelloSegretezza">
		<xs:restriction base="xs:int">
			<xs:minInclusive value="0"/>
			<xs:maxInclusive value="8"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="operatoreRelazionale">
		<xs:restriction base="xs:string">
			<xs:enumeration value="uguale"/>
			<xs:enumeration value="iniziaCon"/>
			<xs:enumeration value="contiene"/>
			<xs:enumeration value="finisceCon"/>
			<xs:enumeration value="minore"/>
			<xs:enumeration value="minoreUguale"/>
			<xs:enumeration value="maggiore"/>
			<xs:enumeration value="maggioreUguale"/>
			<xs:enumeration value="compresoTra"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="operatoreRelazionaleUI">
		<xs:restriction base="xs:string">
			<xs:enumeration value="uguale"/>
			<xs:enumeration value="iniziaCon"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="operatoreRelazionaleIC">
		<xs:restriction base="xs:string">
			<xs:enumeration value="iniziaCon"/>
			<xs:enumeration value="contiene"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="operatoreRelazionaleUIC">
		<xs:restriction base="xs:string">
			<xs:enumeration value="uguale"/>
			<xs:enumeration value="iniziaCon"/>
			<xs:enumeration value="contiene"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="operatoreRelazionaleUICF">
		<xs:restriction base="xs:string">
			<xs:enumeration value="uguale"/>
			<xs:enumeration value="iniziaCon"/>
			<xs:enumeration value="contiene"/>
			<xs:enumeration value="finisceCon"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- 
	<xs:complexType name="RegistrazioneEstratta">
		<xs:sequence>
			<xs:element name="codiceUfficio" type="xs:string"/>
			<xs:element name="descUfficio" type="xs:string" nillable="true"/>
			<xs:element name="codiceRegistro" type="xs:string"/>
			<xs:element name="descRegistro" type="xs:string" nillable="true"/>
			<xs:element name="anno" type="tgen:anno"/>
			<xs:element name="numero" type="tgen:numero"/>
			<xs:element name="subNumero" type="tgen:subNumero"/>
			<xs:element name="verso" type="tgen:verso"/>
			<xs:element name="data" type="xs:date"/>
			<xs:element name="dataAP" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="oggetto" type="tgen:oggetto"/>
			<xs:element name="corrispondente" type="xs:string" nillable="true"/>
			<xs:element name="ufficio" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="classifica" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="idProtocollo" type="tgen:IdProtocollo"/>
			<xs:element name="estremiDocumento">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="docAnno" type="xs:integer" nillable="true"/>
						<xs:element name="docNumero" type="xs:string" nillable="true"/>
						<xs:element name="docNumeroN" type="xs:integer" nillable="true"/>
						<xs:element name="docData" type="xs:date" nillable="true"/>
						<xs:element name="docTipo" type="xs:string" nillable="true"/>
						<xs:element name="docDescTipo" type="xs:string" nillable="true"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="immagini" type="xs:boolean" nillable="true"/>
			<xs:element name="documenti" type="xs:boolean" nillable="true"/>
			<xs:element name="iop" type="xs:boolean" nillable="true" minOccurs="0"/>
			<xs:element name="annullato" type="xs:boolean" nillable="true" minOccurs="0"/>
			<xs:element name="livSegretezza" type="xs:integer" nillable="true" minOccurs="0"/>
			<xs:element name="datiUltimoAggiornamento">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="codLoginAgg" type="xs:string" nillable="true"/>
						<xs:element name="dataOraAgg" type="xs:dateTime"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="primaPratica">
				<xs:complexType/>
			</xs:element>
		</xs:sequence>
	</xs:complexType>-->
	<xs:complexType name="DettagliProtocollo">
		<xs:sequence>
			<xs:element name="clasCodClas" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="clasLiv1" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="clasLiv2" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="clasLiv3" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="clasLiv4" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="clasLiv5" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="clasLiv6" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="clasLiv7" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="clasLiv8" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="corrCodTipoDoc" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="corrDataRiferim" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="corrDescAna" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="corrNumRiferim" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="dest2ProgInteressa" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="docAnnoDoc" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="docCntMovi" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="docCodCatDoc" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="docCodTipoDoc" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="docDataDoc" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="docDataFirma" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="docDescOgge" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="docFlIop" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="docImporto" type="xs:decimal" nillable="true" minOccurs="0"/>
			<xs:element name="docNumDoc" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="docNumDocN" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="docSubnDoc" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="docTotAlle" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="docValuta" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="docVariAlle" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="eccezioni" type="xs:decimal" nillable="true" minOccurs="0"/>
			<xs:element name="estSigla" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="fileEstDocProgDoc" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="fileEstOleDocProgDoc" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="fileEstOleProgDoc" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="fileEstProgDoc" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="flCopiaBlob" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="flPerConoscenza" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="flScarto" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="legato2ProgLegato" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="logMoviVersione" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="minimoStato" type="xs:decimal" nillable="true" minOccurs="0"/>
			<xs:element name="mitt2ProgInteressa" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="opeSigla" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="pratAnnoProt" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="pratCodAna" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="pratCodReg" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="pratDescOgge" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="pratNote" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="pratNumProt" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="pratPraticaAc" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="pratPraticaDataAc" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="pratProgDoc" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="pratProgInPrat" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="pratProgLegato" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="pratSubnProt" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="precedentePrimoProgDocP" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="precedenteProgDocP" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="protoAnnoProt" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="protoApProt" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="protoCodLoginAgg" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="protoCodReg" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="protoCollEmergenza" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="protoDataAp" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="protoDataAtti" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="protoDataMovi" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="protoDataOraAgg" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="protoDescOgge" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="protoFlAtti" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="protoFlImmDocumatic" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="protoLivSegretezza" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="protoNoteAtti" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="protoNoteRiservate" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="protoNumProt" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="protoProgAnaUff" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="protoProgDoc" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="protoProgMovi" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="protoStato" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="protoSubnProt" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="qualRegProgQualReg" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="regCodAna" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="regCodAnaInterr" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="regCodReg" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="regCodRegInterr" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="regDescAna" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="regDescReg" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="regNoApProtInterr" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="regProgAna" type="xs:long" nillable="true" minOccurs="0"/>
			<xs:element name="ricevuteArrivate" type="xs:decimal" nillable="true" minOccurs="0"/>
			<xs:element name="ricevuteRichieste" type="xs:decimal" nillable="true" minOccurs="0"/>
<!-- 		<xs:element name="tipoDocColoreSfondo" type="xs:int" nillable="true" minOccurs="0"/>
			<xs:element name="tipoDocColoreTesto" type="xs:int" nillable="true" minOccurs="0"/>
-->			<xs:element name="tipoDocDescTipoDoc" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="uffFlNonVedo" type="xs:short" nillable="true" minOccurs="0"/>
			<xs:element name="uffOpeCodAna" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="uffOpeDescAna" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="uffi2ProgInteressa" type="xs:decimal" nillable="true" minOccurs="0"/>
			<xs:element name="uffiDataRiferim" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="uffiDescAna" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="valuteSimbolo" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="immagini" type="xs:boolean" nillable="true" minOccurs="0"/>
			<xs:element name="documenti" type="xs:boolean" nillable="true" minOccurs="0"/>
			<xs:element name="dataOraProtocollazione" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="codLoginProtocollazione" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="flInoltro" type="xs:decimal" nillable="true" minOccurs="0"/>
			<xs:element name="protoDataScadenza" type="xs:dateTime" nillable="true" minOccurs="0"/>
			<xs:element name="statoRicevute" type="xs:decimal" nillable="true" minOccurs="0">
				<xs:annotation>
					<xs:documentation>
					statoRicevute ==0 Pervenute tutte le ricevute previste
					statoConsegna ==1 Ricevute non ancora complete
					statoConsegna ==2 Errori nella trasmissione del messaggio: verificare le ricevute PEC nella finestra dei corrispondenti
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="casellaMittInvioTelematico" type="xs:string" nillable="true" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Errore">
		<xs:sequence>
			<xs:element name="codice" type="xs:string" nillable="true"/>
			<xs:element name="descrizione" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
	<!-- 
	<xs:complexType name="Classifica">
		<xs:choice>
			<xs:element name="codice" type="xs:string"/>
			<xs:element name="livelli">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="livello" maxOccurs="8">
							<xs:complexType>
								<xs:simpleContent>
									<xs:extension base="xs:string">
										<xs:attribute name="numero" type="xs:int" use="required"/>
									</xs:extension>
								</xs:simpleContent>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="ClassificaResponse">
		<xs:sequence>
			<xs:element name="codice" type="xs:string" nillable="true"/>
			<xs:element name="livelli">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="livello" nillable="true" minOccurs="0" maxOccurs="unbounded">
							<xs:complexType>
								<xs:simpleContent>
									<xs:extension base="xs:string">
										<xs:attribute name="numero" type="xs:int" use="required"/>
									</xs:extension>
								</xs:simpleContent>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	 -->
	 <xs:complexType name="ClassificaLivelli">
		<xs:sequence>
			<xs:element name="codiceLiv1" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv2" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv3" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv4" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv5" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv6" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv7" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv8" type="xs:string" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Classifica">
		<xs:choice>
			<xs:element name="codice" type="xs:string"/>
			<xs:element name="livelli" type="tgen:ClassificaLivelli"/>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="ClassificaView">
		<xs:complexContent>
			<xs:extension base="tgen:ClassificaLivelli">
				<xs:sequence>
					<xs:element name="codice" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizione" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv1" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv2" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv3" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv4" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv5" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv6" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv7" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv8" type="xs:string" minOccurs="0"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>	
	<xs:complexType name="Utente">
		<xs:sequence>
			<xs:choice>
				<xs:element name="codice" type="xs:string"/>
				<xs:element name="codiceFiscale" type="xs:string"/>
			</xs:choice>
			<xs:element name="password" type="xs:string" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DocumentoVisura">
		<xs:sequence>
			<xs:element name="nome" type="xs:string"/>
			<xs:element name="idDoc" type="xs:long"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="ProtocolloRequest">
		<xs:choice>
			<xs:element name="identificatoreProt">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="codiceUfficio" type="xs:string"/>
						<xs:element name="codiceRegistro" type="xs:string"/>
						<xs:element name="anno" type="tgen:anno"/>
						<xs:element name="numero" type="tgen:numero"/>
						<xs:element name="verso" type="tgen:verso"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="idProt" type="tgen:IdProtocollo"/>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="ProtocolloResponse">
		<xs:sequence>
			<xs:element name="codiceUfficio" type="xs:string"/>
			<xs:element name="codiceRegistro" type="xs:string"/>
			<xs:element name="anno" type="tgen:anno"/>
			<xs:element name="numero" type="tgen:numero"/>
			<xs:element name="verso" type="tgen:verso"/>
			<xs:element name="data" type="xs:date"/>
			<xs:element name="progDoc" type="tgen:progDoc"/>
			<xs:element name="progMovi" type="tgen:progMovi"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="IdProtocollo">
		<xs:sequence>
			<xs:element name="progDoc" type="tgen:progDoc"/>
			<xs:element name="progMovi" type="tgen:progMovi"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PraticaRequest">
		<xs:choice>
			<xs:element name="idPrat" type="tgen:IdProtocollo"/>
			<xs:element name="identificatorePratica">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="codiceUfficio" type="xs:string"/>
						<xs:element name="codiceRegistro" type="xs:string"/>
						<xs:element name="anno" type="tgen:anno"/>
						<xs:element name="numero" type="tgen:numero"/>
						<xs:element name="subNumero" type="tgen:subNumero"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="PraticaResponse">
		<xs:sequence>
			<xs:element name="codiceUfficio" type="xs:string"/>
			<xs:element name="codiceRegistro" type="xs:string"/>
			<xs:element name="anno" type="tgen:anno"/>
			<xs:element name="numero" type="tgen:numero"/>
			<xs:element name="subNumero" type="tgen:subNumero"/>
			<xs:element name="dataApertura" type="xs:date"/>
			<xs:element name="progDoc" type="tgen:progDoc"/>
			<xs:element name="progMovi" type="tgen:progMovi"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="UfficioPrat">
		<xs:sequence>
			<xs:element name="codice" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="descrizione" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="dataRiferim" type="xs:date" nillable="true" minOccurs="0"/>
			<xs:element name="modalitaTrasmissione" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="note" type="tgen:note" nillable="true" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RiferimentoAnagrafico">
		<xs:annotation>
			<xs:documentation>riferimento anagrafico pratica</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="codice" type="xs:string" minOccurs="0"/>
			<xs:element name="descrizione" type="xs:string" minOccurs="0"/>
			<xs:element name="codTipo" type="xs:string" minOccurs="0"/>
			<xs:element name="descTipo" type="xs:string" minOccurs="0"/>
			<xs:element name="data" type="xs:date" minOccurs="0"/>
			<xs:element name="inserisci" type="xs:boolean" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="UfficioPratResponse">
		<xs:sequence>
			<xs:element name="codice" type="xs:string" minOccurs="0"/>
			<xs:element name="descrizione" type="xs:string" minOccurs="0"/>
			<xs:element name="dataRiferim" type="xs:date" minOccurs="0"/>
			<xs:element name="modalitaTrasmCod" type="xs:string" minOccurs="0"/>
			<xs:element name="modalitaTrasmDesc" type="xs:string" minOccurs="0"/>
			<xs:element name="note" type="tgen:note" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PraticaDataAc">
		<xs:sequence>
			<xs:element name="data" type="xs:date" minOccurs="0"/>
			<xs:element name="praticaAc" type="tgen:PraticaAC"/>
		</xs:sequence>
	</xs:complexType>
	<!-- 
	<xs:complexType name="DatiAnagrafica">
		<xs:all>
			<xs:element name="nome" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="cognome" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="denominaz" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="indirizzo" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="localita" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="provincia" nillable="true" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:length value="2"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="cap" nillable="true" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:length value="5"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="stato" type="xs:string" nillable="true" minOccurs="0"/>
			<xs:element name="codfis" nillable="true" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="16"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="piva" nillable="true" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:length value="11"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:all>
	</xs:complexType>
	-->
	<xs:complexType name="EstremiDocumento">
		<xs:all>
			<xs:element name="numero" type="tgen:numRiferim" minOccurs="0"/>
			<xs:element name="data" type="xs:date" minOccurs="0"/>
			<xs:element name="anno" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:unsignedShort">
						<xs:totalDigits value="4"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="tipo" type="xs:string" minOccurs="0"/>
		</xs:all>
	</xs:complexType>
	<xs:complexType name="MittenteInsProto">
		<xs:sequence>
			<xs:element name="codice" type="xs:string" minOccurs="0"/>
			<xs:element name="descrizione" type="xs:string" minOccurs="0"/>
			<!-- 
			<xs:element name="inserisci" type="xs:boolean" minOccurs="0"/>
			<xs:element name="datiAnagrafica" type="tgen:DatiAnagrafica" minOccurs="0"/>
			-->
			<xs:element name="dataRiferim" type="xs:date" minOccurs="0"/>
			<xs:element name="numRiferim" type="tgen:numRiferim" minOccurs="0"/>
			<xs:element name="note" type="tgen:note" minOccurs="0"/>
			<xs:element name="modalitaTrasmissione" type="xs:string" minOccurs="0"/>
			<xs:element name="tipo" type="xs:string" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DestinatarioInsProto">
		<xs:complexContent>
			<xs:extension base="tgen:MittenteInsProto">
				<xs:sequence>
					<xs:element name="giaInviato" type="xs:boolean" minOccurs="0"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<xs:complexType name="DestinatarioIOPInsProto">
		<xs:complexContent>
			<xs:extension base="tgen:MittenteInsProto">
				<xs:sequence>
					<xs:element name="giaInviato" type="xs:boolean" minOccurs="0"/>
					<xs:element name="invioTelemIop" type="xs:boolean" minOccurs="0"/>
					<xs:element name="invioTelemIopRa" type="xs:boolean" minOccurs="0"/>
					<xs:element name="invioTelemIopRc" type="xs:boolean" minOccurs="0"/>
					<xs:element name="invioTelemPec" type="xs:boolean" minOccurs="0"/>
					<xs:element name="invioTelemMail" type="xs:string" minOccurs="0"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	
	<xs:complexType name="UfficioInsProto">
		<xs:all>
			<xs:element name="codice" type="xs:string" minOccurs="0"/>
			<xs:element name="descrizione" type="xs:string" minOccurs="0"/>
			<xs:element name="dataRiferim" type="xs:date" minOccurs="0"/>
			<xs:element name="numRiferim" type="tgen:numRiferim" minOccurs="0"/>
			<xs:element name="note" type="tgen:note" minOccurs="0"/>
			<xs:element name="modalitaTrasmissione" type="xs:string" minOccurs="0"/>
			<xs:element name="tipo" type="xs:string" minOccurs="0"/>
			<xs:element name="invioMail" type="xs:boolean" minOccurs="0"/>
			<xs:element name="invioMailAllegati" type="xs:boolean" minOccurs="0"/>
			<xs:element name="invioMailCc" type="xs:boolean" minOccurs="0"/>
			<xs:element name="invioMailRr" type="xs:boolean" minOccurs="0"/>
			<xs:element name="giaInviato" type="xs:boolean" minOccurs="0"/>
		</xs:all>
	</xs:complexType>	
	<xs:complexType name="DocumentoInsProto">
		<xs:sequence>
			<xs:element name="id" type="xs:string" />
			<xs:element name="nome" type="xs:string"/>
			<xs:element name="primario" type="xs:boolean" minOccurs="0"/>
			<xs:element name="inviaIOP" type="xs:boolean" minOccurs="0"/>
			<xs:element name="testoMessaggio" type="xs:boolean" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="EstremiProvvedimento">
		<xs:sequence>
			<xs:element name="data" type="xs:date" minOccurs="0"/>
			<xs:element name="estremi" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="motivo" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="ValoreRelazioneUIC">
		<xs:sequence>
			<xs:element name="valore" type="xs:string" nillable="false"/>
			<xs:element name="relazione" type="tgen:operatoreRelazionaleUIC" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MnemonicoRicerca">
		<xs:sequence>
			<xs:element name="codiceTipo" type="xs:string"/>
			<xs:element name="livello" maxOccurs="8">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="valore" type="xs:string"/>
						<xs:element name="relazione" type="tgen:operatoreRelazionale"/>
					</xs:sequence>
					<xs:attribute name="numero" type="xs:int" use="required"/>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!--
	<xs:complexType name="MnemonicoRequest">
		<xs:sequence>
			<xs:element name="codiceTipo" type="xs:string"/>
			<xs:element name="livello" minOccurs="1" maxOccurs="8">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="xs:string">
							<xs:attribute name="numero" type="xs:int" use="required"/>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MnemonicoResponse">
		<xs:sequence>
			<xs:element name="codiceTipo" type="xs:string"/>
			<xs:element name="descTipo" type="xs:string"/>
			<xs:element name="codiceMnem" type="xs:string"/>
			<xs:element name="livello" maxOccurs="8">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="xs:string">
							<xs:attribute name="numero" type="xs:int" use="required"/>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
			<xs:element name="descLivello" maxOccurs="8">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="xs:string">
							<xs:attribute name="numero" type="xs:int" use="required"/>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	-->
	<xs:complexType name="Mnemonico">
		<xs:sequence>
			<xs:element name="codiceTipo" type="xs:string"/>
			<xs:element name="codiceLiv1" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv2" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv3" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv4" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv5" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv6" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv7" type="xs:string" minOccurs="0"/>
			<xs:element name="codiceLiv8" type="xs:string" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>	
	<xs:complexType name="MnemonicoView">
		<xs:complexContent>
			<xs:extension base="tgen:Mnemonico">
				<xs:sequence>
					<xs:element name="codice" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneTipo" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv1" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv2" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv3" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv4" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv5" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv6" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv7" type="xs:string" minOccurs="0"/>
					<xs:element name="descrizioneLiv8" type="xs:string" minOccurs="0"/>
				</xs:sequence>
			</xs:extension>		
		</xs:complexContent>
	</xs:complexType>
	<xs:complexType name="DettaglioAllegato">
		<xs:sequence>
			<xs:element name="name" type="xs:string" />			
			<xs:element name="size" type="xs:long" />
			<xs:element name="idFile" type="xs:string" />
			<xs:element name="impronta" type="xs:string" minOccurs="0"/>
			<xs:element name="improntaCorrente" type="xs:string" minOccurs="0"/>
			<xs:element name="improntaWarning" type="xs:boolean" minOccurs="0" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="FileAllegato">
		<xs:sequence>
			<xs:element name="nomeFile" type="xs:string" />
			<xs:element name="sizeFile" type="xs:long" />
			<xs:element name="idFile" type="xs:string" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PrecedenteInsProto">
		<xs:sequence>
			<xs:element name="precedente" type="tgen:ProtocolloRequest"/>
			<xs:element name="tipoLegame" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>