<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2008 rel. 2 sp2 (http://www.altova.com) by Gonzalo Fernández-Victorio (Intervención Gral. Administración del Estado (Econ. y Hacienda)) -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tipos="urn:TiposSGestionAPlataforma" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="urn:SGestionAPlataforma" targetNamespace="urn:SGestionAPlataforma">
	<documentation lang="ES">
		Servicio web que se aloja en la plataforma y que permite la comunicación NO automática entre
		el sistema de gestión y la plataforma.
	</documentation>
	<types>
		<xsd:schema targetNamespace="urn:SGestionAPlataforma">
			<xsd:import schemaLocation="SGestorAPlataforma.xsd" namespace="urn:TiposSGestionAPlataforma"/>
		</xsd:schema>
	</types>
	<message name="SolicitudFacturas_mensajeEntrada">
		<part name="parameters" element="tipos:SolicitudFacturasPeticion"/>
	</message>
	<message name="SolicitudFacturas_mensajeSalida">
		<part name="parameters" element="tipos:SolicitudFacturasRespuesta"/>
	</message>
	<message name="DescargaFactura_mensajeEntrada">
		<part name="parameters" element="tipos:DescargaFacturaPeticion"/>
	</message>
	<message name="DescargaFactura_mensajeSalida">
		<part name="parameters" element="tipos:DescargaFacturaRespuesta"/>
	</message>
	<message name="CambioEstado_mensajeEntrada">
		<part name="parameters" element="tipos:CambioEstadoPeticion"/>
	</message>
	<message name="CambioEstado_mensajeSalida">
		<part name="parameters" element="tipos:CambioEstadoRespuesta"/>
	</message>
	<message name="errorSGAPlataforma_mensaje">
		<part name="parameter" element="tipos:errorSGestionAPlataforma"/>
	</message>
	<portType name="SGestionAPlataforma">
		<operation name="solicitarFacturas">
			<documentation xml:lang="ES">
				Método que permite que Plataforma central de facturación de la AGE/plataforma de facturación informe al Sistema de Gestión de las facturas pendientes de recibir.
			</documentation>
			<input message="tns:SolicitudFacturas_mensajeEntrada"/>
			<output message="tns:SolicitudFacturas_mensajeSalida"/>
			<fault name="errorGestion" message="tns:errorSGAPlataforma_mensaje"/>
		</operation>
		<operation name="descargarFactura">
			<documentation xml:lang="ES">
			Método que permite que un Sistema de Gestión notifique el deseo de recibir una determinada Factura.
			</documentation>
			<input message="tns:DescargaFactura_mensajeEntrada"/>
			<output message="tns:DescargaFactura_mensajeSalida"/>
			<fault name="errorGestion" message="tns:errorSGAPlataforma_mensaje"/>
		</operation>
		<operation name="cambiarEstado">
			<documentation xml:lang="ES">
			Método que permite al sistema de gestión actualizar el estado de una factura.
			</documentation>
			<input message="tns:CambioEstado_mensajeEntrada"/>
			<output message="tns:CambioEstado_mensajeSalida"/>
			<fault name="errorGestion" message="tns:errorSGAPlataforma_mensaje"/>
		</operation>
	</portType>
	<binding name="SGestorAPlataforma" type="tns:SGestionAPlataforma">
		<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsp:PolicyReference URI="#Politica_Binding_SGestorAPlataforma"/>
		<operation name="solicitarFacturas">
			<soap12:operation soapAction="http://www.plataforma.es/SGestorAPlataforma/solicitarFacturas" soapActionRequired="true" style="document"/>
			<input>
				<wsp:PolicyReference URI="#Politica_Entrada_Metodo_Solicitud"/>
				<soap12:body use="literal"/>
			</input>
			<output>
				<wsp:PolicyReference URI="#Politica_Salida_Metodo_Solicitud"/>
				<soap12:body use="literal"/>
			</output>
			<fault name="errorGestion">
				<soap12:fault name="errorGestion" use="literal"/>
			</fault>
		</operation>
		<operation name="descargarFactura">
			<soap12:operation soapAction="http://www.plataforma.es/SGestorAPlataforma/descargarFactura" soapActionRequired="true" style="document"/>
			<input>
				<wsp:PolicyReference URI="#Politica_Entrada_Metodo_Descarga"/>
				<soap12:body use="literal"/>
			</input>
			<output>
				<wsp:PolicyReference URI="#Politica_Salida_Metodo_Descarga"/>
				<soap12:body use="literal"/>
			</output>
			<fault name="errorGestion">
				<soap12:fault name="errorGestion" use="literal"/>
			</fault>
		</operation>
		<operation name="cambiarEstado">
			<soap12:operation soapAction="http://www.plataforma.es/SGestorAPlataforma/cambiarEstado" soapActionRequired="true" style="document"/>
			<input>
				<wsp:PolicyReference URI="#Politica_Entrada_Metodo_CambioEstado"/>
				<soap12:body use="literal"/>
			</input>
			<output>
				<wsp:PolicyReference URI="#Politica_Salida_Metodo_CambioEstado"/>
				<soap12:body use="literal"/>
			</output>
			<fault name="errorGestion">
				<soap12:fault name="errorGestion" use="literal"/>
			</fault>
		</operation>
	</binding>
	<service name="SGestorAPlataforma">
		<documentation lang="ES">
		Servicio web que se aloja en la plataforma y que permite la comunicación NO automática entre
		el sistema de gestión y la plataforma.</documentation>
		<port name="SGestorAPlataforma" binding="tns:SGestorAPlataforma">
			<soap12:address location="http://www.plataforma.es/SGestorAPlataforma/SGestorAPlataforma.asmx"/>
			<wsa:EndpointReference>
				<wsa:Address>http://www.plataforma.es/SGestorAPlataforma/SGestorAPlataforma.asmx</wsa:Address>
				<Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
					<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
						<X509Data>
							<X509Certificate>MIIBxjCCATOgAwIBAgI....PotJoxYrbhUdd6imtjXZ15DrNBppAvg8xST+8rVuhXs4=</X509Certificate>
						</X509Data>
					</KeyInfo>
				</Identity>
			</wsa:EndpointReference>
		</port>
	</service>
	<wsp:Policy wsu:Id="Politica_Binding_SGestorAPlataforma">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<wsp:Policy>
						<sp:InitiatorToken>
							<wsp:Policy>
								<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
									<wsp:Policy>
										<sp:WssX509V3Token10/>
									</wsp:Policy>
								</sp:X509Token>
							</wsp:Policy>
						</sp:InitiatorToken>
						<sp:RecipientToken>
							<wsp:Policy>
								<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
									<wsp:Policy>
										<sp:WssX509V3Token10/>
									</wsp:Policy>
								</sp:X509Token>
							</wsp:Policy>
						</sp:RecipientToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic256/>
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict/>
							</wsp:Policy>
						</sp:Layout>
						<sp:IncludeTimestamp/>
						<sp:OnlySignEntireHeadersAndBody/>
					</wsp:Policy>
				</sp:AsymmetricBinding>
				<sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<wsp:Policy>
						<sp:MustSupportRefKeyIdentifier/>
						<sp:MustSupportRefIssuerSerial/>
					</wsp:Policy>
				</sp:Wss10>
				<sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<wsp:Policy>
						<sp:MustSupportIssuedTokens/>
						<sp:RequireClientEntropy/>
						<sp:RequireServerEntropy/>
					</wsp:Policy>
				</sp:Trust10>
				<wsap:UsingAddressing/>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy wsu:Id="Politica_Entrada_Metodo_Solicitud">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<sp:Body/>
					<sp:Header Name="To" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="From" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="FaultTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="ReplyTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="MessageID" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="RelatesTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="Action" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
				</sp:SignedParts>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy wsu:Id="Politica_Salida_Metodo_Solicitud">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<sp:Body/>
					<sp:Header Name="To" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="From" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="FaultTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="ReplyTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="MessageID" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="RelatesTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="Action" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
				</sp:SignedParts>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy wsu:Id="Politica_Entrada_Metodo_Descarga">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<sp:Body/>
					<sp:Header Name="To" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="From" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="FaultTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="ReplyTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="MessageID" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="RelatesTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="Action" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
				</sp:SignedParts>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy wsu:Id="Politica_Salida_Metodo_Descarga">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<sp:Body/>
					<sp:Header Name="To" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="From" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="FaultTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="ReplyTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="MessageID" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="RelatesTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="Action" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
				</sp:SignedParts>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy wsu:Id="Politica_Entrada_Metodo_CambioEstado">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<sp:Body/>
					<sp:Header Name="To" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="From" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="FaultTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="ReplyTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="MessageID" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="RelatesTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="Action" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
				</sp:SignedParts>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy wsu:Id="Politica_Salida_Metodo_CambioEstado">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<sp:Body/>
					<sp:Header Name="To" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="From" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="FaultTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="ReplyTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="MessageID" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="RelatesTo" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
					<sp:Header Name="Action" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
				</sp:SignedParts>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
</definitions>
