<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" 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:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:i0="urn:wsProveedorAPlataforma" xmlns:tipos="urn:TiposProveedorAPlataforma" name="WebServiceFacturacion" targetNamespace="urn:wsProveedorAPlataforma">
	<documentation xml:lang="ES">
		Servicio Web que se aloja en la plataforma de facturación del órgano gestor o en el PGEFe 
		y que permite recibir peticiones desde los proveedores
	</documentation>
	<types>
		<xs:schema targetNamespace="urn:ProvedorAPlataforma">
			<xs:import schemaLocation="ProveedorAPlataforma.xsd" namespace="urn:TiposProveedorAPlataforma"/>
		</xs:schema>
	</types>
	<message name="AltaFactura_MensajeEntrada">
		<part name="parameters" element="tipos:AltaFacturaPeticion"/>
	</message>
	<message name="AltaFactura_MensajeSalida">
		<part name="parameters" element="tipos:AltaFacturaRespuesta"/>
	</message>
	<message name="ConsultarEstadoFacturaPorID_MensajeEntrada">
		<part name="parameters" element="tipos:ConsultarEstadoFacturaPorIdentificadorPeticion"/>
	</message>
	<message name="ConsultarEstadoFacturaPorID_MensajeSalida">
		<part name="parameters" element="tipos:ConsultarEstadoFacturaPorIdentificadorRespuesta"/>
	</message>
	<message name="ConsultarEstadoFacturaPorRegistro_MensajeEntrada">
		<part name="parameters" element="tipos:ConsultarEstadoFacturaPorRegistroPeticion"/>
	</message>
	<message name="ConsultarEstadoFacturaPorRegistro_MensajeSalida">
		<part name="parameters" element="tipos:ConsultarEstadoFacturaPorRegistroRespuesta"/>
	</message>
	<message name="AnularFactura_MensajeEntrada">
		<part name="parameters" element="tipos:AnularFacturaPeticion"/>
	</message>
	<message name="AnularFactura_MensajeSalida">
		<part name="parameters" element="tipos:AnularFacturaRespuesta"/>
	</message>
	<message name="ErrorProveedorAPlataforma_Mensaje">
		<part name="parameter" element="tipos:ErrorProveedorPlataforma"/>
	</message>
	<portType name="ProveedorAPlataforma">
		<operation name="AltaFactura">
			<documentation xml:lang="ES">
				Método por el que un proveedor envía facturas a la plataforma AGE, 
				bien directamente a una plataforma de organismo o a través del PGEFe.
			</documentation>
			<input message="i0:AltaFactura_MensajeEntrada" wsaw:Action="http://plataforma/ws/WebServiceFacturacion/IWebServiceFacturacion/altaFactura"/>
			<output message="i0:AltaFactura_MensajeSalida" wsaw:Action="http://plataforma/ws/WebServiceFacturacion/IWebServiceFacturacion/altaFacturaResponse"/>
			<fault name="errorProvPlataforma" message="i0:ErrorProveedorAPlataforma_Mensaje"/>
		</operation>
		<operation name="ConsultarEstadoFacturaPorIdentificador">
			<documentation xml:lang="ES">
				Método por el que el proveedor o un tercero en su nombre consultan el estado de sus facturas.
			</documentation>
			<input message="i0:ConsultarEstadoFacturaPorID_MensajeEntrada" wsaw:Action="http://plataforma/ws/WebServiceFacturacion/IWebServiceFacturacion/consultarEstadoFacturaPorID"/>
			<output message="i0:ConsultarEstadoFacturaPorID_MensajeSalida" wsaw:Action="http://plataforma/ws/WebServiceFacturacion/IWebServiceFacturacion/consultarEstadoFacturaResponsePorID"/>
			<fault name="errorProvPlataforma" message="i0:ErrorProveedorAPlataforma_Mensaje"/>
		</operation>
		<operation name="ConsultarEstadoFacturaPorRegistro">
			<documentation xml:lang="ES">
				Método por el que el proveedor o un tercero en su nombre consultan el estado de sus facturas.
			</documentation>
			<input message="i0:ConsultarEstadoFacturaPorRegistro_MensajeEntrada" wsaw:Action="http://plataforma/ws/WebServiceFacturacion/IWebServiceFacturacion/consultarEstadoFacturaPorRegistro"/>
			<output message="i0:ConsultarEstadoFacturaPorRegistro_MensajeSalida" wsaw:Action="http://plataforma/ws/WebServiceFacturacion/IWebServiceFacturacion/consultarEstadoFacturaResponsePorRegistro"/>
			<fault name="errorProvPlataforma" message="i0:ErrorProveedorAPlataforma_Mensaje"/>
		</operation>
		<operation name="AnularFactura">
			<documentation xml:lang="ES">
				Método que permite que un proveedor solicite la anulación de una factura previamente enviada. 
			</documentation>
			<input message="i0:AnularFactura_MensajeEntrada" wsaw:Action="http://plataforma/ws/WebServiceFacturacion/IWebServiceFacturacion/anularFactura"/>
			<output message="i0:AnularFactura_MensajeSalida" wsaw:Action="http://plataforma/ws/WebServiceFacturacion/IWebServiceFacturacion/anularFacturaResponse"/>
			<fault name="errorProvPlataforma" message="i0:ErrorProveedorAPlataforma_Mensaje"/>
		</operation>
	</portType>
	<binding name="ProveedorAPlataforma" type="i0:ProveedorAPlataforma">
		<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_policy"/>
		<operation name="AltaFactura">
			<soap12:operation soapAction="http://plataforma/ws/WebServiceFacturacion/altaFactura" soapActionRequired="" style="document"/>
			<input>
				<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_altaFactura_Input_policy"/>
				<soap12:body use="literal"/>
			</input>
			<output>
				<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_altaFactura_output_policy"/>
				<soap12:body use="literal"/>
			</output>
			<fault name="errorProvPlataforma">
				<soap12:fault name="errorProvPlataforma" use="literal"/>
			</fault>
		</operation>
		<operation name="ConsultarEstadoFacturaPorIdentificador">
			<soap12:operation soapAction="http://plataforma/ws/WebServiceFacturacion/consultarEstadoFacturaPorID" soapActionRequired="" style="document"/>
			<input>
				<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_consultarEstadoFacturaPorID_Input_policy"/>
				<soap12:body use="literal"/>
			</input>
			<output>
				<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_consultarEstadoFacturaPorID_output_policy"/>
				<soap12:body use="literal"/>
			</output>
			<fault name="errorProvPlataforma">
				<soap12:fault name="errorProvPlataforma" use="literal"/>
			</fault>
		</operation>
		<operation name="ConsultarEstadoFacturaPorRegistro">
			<soap12:operation soapAction="http://plataforma/ws/WebServiceFacturacion/consultarEstadoFacturaPorRegistro" soapActionRequired="" style="document"/>
			<input>
				<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_consultarEstadoFacturaPorRegistro_Input_policy"/>
				<soap12:body use="literal"/>
			</input>
			<output>
				<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_consultarEstadoFacturaPorRegistro_output_policy"/>
				<soap12:body use="literal"/>
			</output>
			<fault name="errorProvPlataforma">
				<soap12:fault name="errorProvPlataforma" use="literal"/>
			</fault>
		</operation>
		<operation name="AnularFactura">
			<soap12:operation soapAction="http://plataforma/ws/WebServiceFacturacion/anularFactura" soapActionRequired="" style="document"/>
			<input>
				<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_anularFactura_Input_policy"/>
				<soap12:body use="literal"/>
			</input>
			<output>
				<wsp:PolicyReference URI="#Binding_IWebServiceFacturacion_anularFactura_output_policy"/>
				<soap12:body use="literal"/>
			</output>
			<fault name="errorProvPlataforma">
				<soap12:fault name="errorProvPlataforma" use="literal"/>
			</fault>
		</operation>
	</binding>
	<service name="ProveedorAPlataforma">
		<port name="Binding_IWebServiceFacturacion" binding="i0:ProveedorAPlataforma">
			<soap12:address location="http://plataforma/ws/WebServiceFacturacion"/>
			<wsa:EndpointReference>
				<wsa:Address>http://plataforma/ws/WebServiceFacturacion</wsa:Address>
				<Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
					<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
						<X509Data>
							<X509Certificate>MIIBxjCCATOgAwIBAgIQkP3HbZ5KsYN......H5ZPotJoxYrbhUdd6imtjXZ15DrNBppAvg8xST+8rVuhXs4=</X509Certificate>
						</X509Data>
					</KeyInfo>
				</Identity>
			</wsa:EndpointReference>
		</port>
	</service>
	<wsp:Policy wsu:Id="Binding_IWebServiceFacturacion_policy">
		<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="Binding_IWebServiceFacturacion_altaFactura_Input_policy">
		<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="Binding_IWebServiceFacturacion_altaFactura_output_policy">
		<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="Binding_IWebServiceFacturacion_consultarEstadoFacturaPorID_Input_policy">
		<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="Binding_IWebServiceFacturacion_consultarEstadoFacturaPorID_output_policy">
		<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="Binding_IWebServiceFacturacion_consultarEstadoFacturaPorRegistro_Input_policy">
		<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="Binding_IWebServiceFacturacion_consultarEstadoFacturaPorRegistro_output_policy">
		<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="Binding_IWebServiceFacturacion_anularFactura_Input_policy">
		<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="Binding_IWebServiceFacturacion_anularFactura_output_policy">
		<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>
