<?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/Validate</addressing:Action>
	    <addressing:To env:mustUnderstand="1">http://BeS:8081/ReplaceWithActualPAPUrl</addressing:To>
        <addressing:MessageID>uuid:9FE2ACE7-ED50-42DE-AF39-44B130E917FE</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 xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
            <wst:TokenType>urn:elga:pap:query</wst:TokenType>
            <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Status</wst:RequestType>
            <wst:ValidateTarget>
                <ts:ConsentQuery xmlns:ts="urn:tiani-spirit:ts">
                    <ts:PatientID>GH:bPKOKc82RYcxi5RptOZ0LuoeaYYw/c=^^^&amp;1.2.40.0.10.2.1.1.149&amp;ISO </ts:PatientID>
                    <ts:ReturnConsentData>true</ts:ReturnConsentData>
                    <ts:ReturnSignedDoc>true</ts:ReturnSignedDoc>
                </ts:ConsentQuery>
            </wst:ValidateTarget>
        </wst:RequestSecurityToken>
    </env:Body>
</env:Envelope>
