<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    <env:Header xmlns:addressing="http://www.w3.org/2005/08/addressing">
        <addressing:Action env:mustUnderstand="1">http://docs.oasis-open.org/ws-sx/
                 ws-trust/200512/RST/Issue</addressing:Action>
				 <addressing:To env:mustUnderstand="1">http://BeS:8081/ReplaceWithActualPAPUrl</addressing:To>
        <addressing:MessageID>uuid:355C2B9B-6F3D-4730-A277-69BFD81FDD27</addressing:MessageID>
        <addressing:ReplyTo>
            <addressing:Address>http://www.w3.org/2005/08/addressing/anonymous</addressing:Address>
        </addressing:ReplyTo>
        <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <!-- saml2:Mandate I Assertion or User I Assertion -->
        </Security>
    </env:Header>
    <env:Body>
        <wst:RequestSecurityToken Context="sessionID" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
            <wst:TokenType>urn:elga:pap:submit</wst:TokenType>
            <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue</wst:RequestType>
            <wst:Claims Dialect="urn:tiani-spirit:bes:2013:claims">
                <ts:ClaimType DataType="http://www.tiani-spirit.com/2013/BeS/TRSchema#PoliciesType" 
                    name="urn:oasis:names:tc:xacml:1.0:resource:resource-id" xmlns:ts="urn:tiani-spirit:ts">
                    <!-- StateID der vorangegangenen QueryConsent RSTR -->
                    <ts:StateID>21a57f2fe765e1ae4a8bf15d73fc1bf2a533f547f2343d12a499d9c0592044d6</ts:StateID>
                    <!-- Policies -->
                    <ts:GeneratedPolicies>
                        <ts:IndividualRequestPolicy>
                            <PolicySet PolicyCombiningAlgId="urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny-overrides" 
                                PolicySetId="urn:elga:bes:2013:1.2.3.1.1" xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
                                <Description>patient request PolicySet that meet the first RST</Description>
                                <Target/>
                                <!-- Individuelle Request Policies 2.2.2.2.1 (nicht Base64 codiert)  -->
                            </PolicySet>
                        </ts:IndividualRequestPolicy>
                        <ts:IndividualResponsePolicy>
                            <PolicySet PolicyCombiningAlgId="urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny-overrides" 
                                PolicySetId="urn:elga:bes:2013:1.2.3.2.2" xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
                                <Description>patient response PolicySet that meet the first RST</Description>
                                <Target/>
                                <!-- Individuelle Response Policy 2.2.2.2.2 (nicht Base64 codiert) -->
                            </PolicySet>
                        </ts:IndividualResponsePolicy>
                    </ts:GeneratedPolicies>
                </ts:ClaimType>
                <ts:ClaimType DataType="http://www.w3.org/2001/XMLSchema#base64Binary" 
                    name="urn:tiani-spirit:bes:2013:claims:signed-document" xmlns:ts="urn:tiani-spirit:ts">
                    <ts:ClaimValue>
                              <!-- Signed Document Base64 verschluesselt -->
                    </ts:ClaimValue>
                </ts:ClaimType>
            </wst:Claims>
        </wst:RequestSecurityToken>
    </env:Body>
</env:Envelope>
