<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://mlp.op.fi/OPCertificateService" xmlns:tns="http://mlp.op.fi/OPCertificateService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<wsdl:types>
		<xsd:schema targetNamespace="http://mlp.op.fi/OPCertificateService" elementFormDefault="qualified" attributeFormDefault="qualified">
			<xsd:complexType name="CertificateRequestHeader">
				<xsd:sequence>
					<xsd:element name="SenderId" type="xsd:string" nillable="false"/>
					<xsd:element name="RequestId" type="xsd:string" nillable="false"/>
					<xsd:element name="Timestamp" type="xsd:dateTime" nillable="false"/>
				</xsd:sequence>
			</xsd:complexType>
			<xsd:complexType name="CertificateResponseHeader">
				<xsd:sequence>
					<xsd:element name="SenderId" type="xsd:string" nillable="false"/>
					<xsd:element name="RequestId" type="xsd:string" nillable="false"/>
					<xsd:element name="Timestamp" type="xsd:dateTime" nillable="false"/>
					<xsd:element name="ResponseCode" type="xsd:string" nillable="true"/>
					<xsd:element name="ResponseText" type="xsd:string" nillable="true"/>
				</xsd:sequence>
			</xsd:complexType>
			<xsd:complexType name="GetCertificateRequest">
				<xsd:sequence>
					<xsd:element name="RequestHeader" type="tns:CertificateRequestHeader" nillable="false"/>
					<xsd:element name="ApplicationRequest" type="xsd:base64Binary" nillable="false"/>
				</xsd:sequence>
			</xsd:complexType>
			<xsd:complexType name="GetCertificateResponse">
				<xsd:sequence>
					<xsd:element name="ResponseHeader" type="tns:CertificateResponseHeader" nillable="false"/>
					<xsd:element name="ApplicationResponse" type="xsd:base64Binary" nillable="false"/>
				</xsd:sequence>
			</xsd:complexType>
			<xsd:complexType name="CertificateServiceFaultDetail">
				<xsd:sequence>
					<xsd:element minOccurs="0" maxOccurs="1" name="category" type="xsd:string"/>
					<xsd:element minOccurs="0" maxOccurs="1" name="code" type="xsd:string"/>
				</xsd:sequence>
			</xsd:complexType>
		</xsd:schema>
		<xsd:schema targetNamespace="http://mlp.op.fi/OPCertificateService" elementFormDefault="qualified" attributeFormDefault="qualified">
			<xsd:element name="getCertificatein" type="tns:GetCertificateRequest"/>
			<xsd:element name="getCertificateout" type="tns:GetCertificateResponse"/>
			<xsd:element name="certificateServiceFaultElement" type="tns:CertificateServiceFaultDetail"/>
		</xsd:schema>
	</wsdl:types>
	<wsdl:message name="certificateServiceFault">
		<wsdl:part name="certificateServiceFault" element="tns:certificateServiceFaultElement"/>
	</wsdl:message>
	<wsdl:message name="getCertificateRequest">
		<wsdl:part element="tns:getCertificatein" name="getCertificatein"/>
	</wsdl:message>
	<wsdl:message name="getCertificateResponse">
		<wsdl:part element="tns:getCertificateout" name="getCertificateout"/>
	</wsdl:message>
	<wsdl:portType name="OPCertificateServicePortType">
		<wsdl:operation name="getCertificate">
			<wsdl:input message="tns:getCertificateRequest" name="getCertificateRequest"/>
			<wsdl:output message="tns:getCertificateResponse" name="getCertificateResponse"/>
			<wsdl:fault message="tns:certificateServiceFault" name="certificateServiceFault"/>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="OPCertificateServiceHttpBinding" type="tns:OPCertificateServicePortType">
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsdl:operation name="getCertificate">
			<soap:operation soapAction=""/>
			<wsdl:input name="getCertificateRequest">
				<soap:body use="literal"/>
			</wsdl:input>
			<wsdl:output name="getCertificateResponse">
				<soap:body use="literal"/>
			</wsdl:output>
			<wsdl:fault name="certificateServiceFault">
				<soap:fault use="literal"/>
			</wsdl:fault>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="OPCertificateService">
		<wsdl:port binding="tns:OPCertificateServiceHttpBinding" name="OPCertificateServiceHttpPort">
			<soap:address location="https://ws.samlink.fi/wsdl/CertificateService.xml"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>
