<?xml version="1.0"?>
<definitions name="EdecComplaintService" targetNamespace="http://www.e-dec.ch/services/EdecComplaintService/v1/" xmlns:tns="http://www.e-dec.ch/services/EdecComplaintService/v1/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:edecComplaintRequest="http://www.e-dec.ch/xml/schema/edecComplaintRequest/v1" xmlns:edecComplaintResponse="http://www.e-dec.ch/xml/schema/edecComplaintResponse/v1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<documentation>Service for the SYNCHRONOUS submission of e-dec complaints requests</documentation>
	<types>
		<xsd:schema>
			<xsd:import namespace="http://www.e-dec.ch/xml/schema/edecComplaintRequest/v1" schemaLocation="http://www.ezv.admin.ch/pdf_linker.php?doc=edecComplaintRequest_v_1_0"/>
		</xsd:schema>
		<xsd:schema>
			<xsd:import namespace="http://www.e-dec.ch/xml/schema/edecComplaintResponse/v1" schemaLocation="http://www.ezv.admin.ch/pdf_linker.php?doc=edecComplaintResponse_v_1_0"/>
		</xsd:schema>
	</types>
	<message name="edecComplaintRequest">
		<documentation>Contains the parameters for a complaint request.</documentation>
		<part name="parameters" element="edecComplaintRequest:edecComplaintRequest"/>
	</message>
	<message name="edecComplaintResponse">
		<documentation>Contains the parameters for a complaint response. The response is digitally signed according to the WS-Security standard. 
						The signature is described in a WS-Security Policy.
		</documentation>
		<part name="parameters" element="edecComplaintResponse:edecComplaintResponse"/>
	</message>
	<message name="edecComplaintFault">
		<documentation>Contains the reason why the request failed.</documentation>
		<part name="parameters" element="edecComplaintResponse:edecComplaintResponse"/>
	</message>
	<portType name="EdecComplaintServicePortType">
		<operation name="edecComplaintRequest">
			<input message="tns:edecComplaintRequest"/>
			<output message="tns:edecComplaintResponse"/>
			<fault message="tns:edecComplaintFault" name="edecComplaintFault"/>
		</operation>
	</portType>
	<binding name="EdecComplaintServiceBinding" type="tns:EdecComplaintServicePortType">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<operation name="edecComplaintRequest">
			<soap:operation soapAction="edecComplaintRequest" style="document"/>
			<input>
				<soap:body use="literal" parts="parameters"/>
			</input>
			<output>
				<soap:body use="literal" parts="parameters"/>
			</output>
			<fault name="edecComplaintFault">
				<soap:fault name="edecComplaintFault" use="literal"/>
			</fault>
		</operation>
	</binding>
	<service name="EdecComplaintService">
		<documentation>Submit a complaint request to e-dec and receive a synchronous response. 
				Note that a client certificate is required for authentication.</documentation>
		<port name="EdecComplaintServicePort" binding="tns:EdecComplaintServiceBinding">
			<soap:address location="https://ws.edec.ezv.admin.ch/services/EdecComplaintService/v1"/>
		</port>
	</service>
</definitions>
