<?xml version="1.0" encoding="ISO-8859-15"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" 
	xmlns="http://www.tcu.es/retan/peticion" 
	attributeFormDefault="unqualified" 
	elementFormDefault="qualified" 
	jaxb:version="2.0" 
	targetNamespace="http://www.tcu.es/retan/peticion">

	<xsd:element name="mensajeEntrada">
		<xsd:complexType>
			<xsd:sequence>			
				<xsd:element name="diligencia" type="tipoDiligencia" minOccurs="1" maxOccurs="1"/>
				<xsd:element name="ficheros" type="xsd:base64Binary" minOccurs="1" maxOccurs="255"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>

	<xsd:complexType name="tipoDiligencia">
		<xsd:sequence>
			<xsd:element name="nombreRemitente" type="tipoString100"/>
			<xsd:element name="cargoRemitente" type="tipoString250"/>
			<xsd:element name="telefono" type="tipoTelefono"/>
			<xsd:element name="email" type="tipoString100"/>
			<xsd:element name="organismo" type="tipoString250"/>
			<xsd:element name="tipo" type="tipoEnvio"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:simpleType name="tipoTelefono">
		<xsd:restriction base="xsd:string">
			<xsd:minLength value="9"/>
			<xsd:maxLength value="12"/>
		</xsd:restriction>
	</xsd:simpleType>
	
	<xsd:simpleType name="tipoString100">
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="100"/>
		</xsd:restriction>
	</xsd:simpleType>
	
	<xsd:simpleType name="tipoString250">
	    <xsd:restriction base="xsd:string">
			<xsd:maxLength value="250"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="tipoEnvio">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="A"/>
			<xsd:enumeration value="F"/>
		</xsd:restriction>
	</xsd:simpleType>

</xsd:schema>