<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
                  xmlns:ltr20180501="http://sundhedsdatastyrelsen.dk/livstestamente/2018/05/01/"
                  xmlns:tns="http://sundhedsdatastyrelsen.dk/livstestamente/2018/05/01/"
                  xmlns:medcom="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd"
                  xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
                  targetNamespace="http://sundhedsdatastyrelsen.dk/livstestamente/2018/05/01/">

    <wsdl:types>
        <xs:schema targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <xs:include schemaLocation="http://wsdl.nspop.dk/btr/schema/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd/oasis-200401_orig-wss-wssecurity-secext-1.0.xsd"/>
        </xs:schema>
        <xs:schema targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion">
            <xs:include schemaLocation="http://wsdl.nspop.dk/btr/schema/urn_oasis_names_tc_SAML_2.0_assertion/saml-schema-assertion-2.0.xsd"/>
        </xs:schema>
        <xs:schema targetNamespace="http://sundhedsdatastyrelsen.dk/livstestamente/2018/05/01/">
            <xs:include schemaLocation="http://wsdl.nspop.dk/btr/schema/2018_05_01/livstestamenteregister.xsd"/>
        </xs:schema>
        <xs:schema targetNamespace="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd">
            <xs:include schemaLocation="http://wsdl.nspop.dk/btr/schema/2006_01/medcom.xsd"/>
        </xs:schema>
    </wsdl:types>

    <wsdl:message name="SecurityHeader">
        <wsdl:part name="SecurityHeader" element="wsse:Security"/>
    </wsdl:message>

    <wsdl:message name="MedComHeader">
        <wsdl:part name="MedcomHeader" element="medcom:Header"/>
    </wsdl:message>

    <wsdl:message name="GetLivingWillRequest_2018_05_01">
        <wsdl:part element="ltr20180501:GetLivingWillRequest" name="GetLivingWillRequest"/>
    </wsdl:message>
    <wsdl:message name="GetLivingWillResponse_2018_05_01">
        <wsdl:part element="ltr20180501:GetLivingWillResponse" name="GetLivingWillResponse"/>
    </wsdl:message>
    <wsdl:message name="HasLivingWillRequest_2018_05_01">
        <wsdl:part element="ltr20180501:HasLivingWillRequest" name="HasLivingWillRequest"/>
    </wsdl:message>
    <wsdl:message name="HasLivingWillResponse_2018_05_01">
        <wsdl:part element="ltr20180501:HasLivingWillResponse" name="HasLivingWillResponse"/>
    </wsdl:message>
    <wsdl:message name="DGWSFault">
        <wsdl:part name="fault" element="medcom:FaultCode" />
    </wsdl:message>

    <wsdl:portType name="LivingWillPortType">
        <wsdl:operation name="GetLivingWill_2018_05_01">
            <wsdl:input message="tns:GetLivingWillRequest_2018_05_01" name="GetLivingWillRequest_2018_05_01"/>
            <wsdl:output message="tns:GetLivingWillResponse_2018_05_01" name="GetLivingWillResponse_2018_05_01"/>
            <wsdl:fault name="DGWSFault" message="tns:DGWSFault" />
        </wsdl:operation>
        <wsdl:operation name="HasLivingWill_2018_05_01">
            <wsdl:input message="tns:HasLivingWillRequest_2018_05_01" name="HasLivingWillRequest_2018_05_01"/>
            <wsdl:output message="tns:HasLivingWillResponse_2018_05_01" name="HasLivingWillResponse_2018_05_01"/>
            <wsdl:fault name="DGWSFault" message="tns:DGWSFault" />
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="LivingWillBinding" type="tns:LivingWillPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

        <wsdl:operation name="GetLivingWill_2018_05_01">
            <soap:operation soapAction="http://sundhedsdatastyrelsen.dk/livstestamente/2018/05/01#GetLivingWill"/>
            <wsdl:input name="GetLivingWillRequest_2018_05_01">
                <soap:header use='literal' part='SecurityHeader' message='tns:SecurityHeader' />
                <soap:header use='literal' part='MedcomHeader' message='tns:MedComHeader' />
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="GetLivingWillResponse_2018_05_01">
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="DGWSFault">
                <soap:fault name="DGWSFault" use="literal" />
            </wsdl:fault>
        </wsdl:operation>

        <wsdl:operation name="HasLivingWill_2018_05_01">
            <soap:operation soapAction="http://sundhedsdatastyrelsen.dk/livstestamente/2018/05/01#HasLivingWill"/>
            <wsdl:input name="HasLivingWillRequest_2018_05_01">
                <soap:header use='literal' part='SecurityHeader' message='tns:SecurityHeader' />
                <soap:header use='literal' part='MedcomHeader' message='tns:MedComHeader' />
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="HasLivingWillResponse_2018_05_01">
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="DGWSFault">
                <soap:fault name="DGWSFault" use="literal" />
            </wsdl:fault>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="LivingWillService">
        <wsdl:port name="LivingWillPort" binding="tns:LivingWillBinding">
            <soap:address location="http://localhost:8080/btr-service/ltr"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
