﻿<?xml version="1.0" encoding="utf-8"?>
<env:Envelope xmlns:addressing="http://www.w3.org/2005/08/addressing" xmlns:env="http://www.w3.org/2003/05/soap-envelope">
  <env:Header>
    <addressing:Action env:mustUnderstand="1">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel</addressing:Action>
	<addressing:To env:mustUnderstand="1">http://BeS:8081/ReplaceWithActualETSUrl</addressing:To>
    <sec:Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      <!--saml2:Assertion ELGA Login Assertion to cancel - e.g. with Assertion.ID "_8bbe7760-50c7-4103-8264-50a485479788"-->
    </sec:Security>
    <addressing:MessageID>urn:uuid:833f1dac-4ad1-4d0a-a347-218084f26c83</addressing:MessageID>
    <addressing:ReplyTo>
      <addressing:Address>http://www.w3.org/2005/08/addressing/anonymous</addressing:Address>
    </addressing:ReplyTo>
  </env:Header>
  <env:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <RequestSecurityToken xmlns="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
      <!--The TokenType of the Login Assertion to cancel - in this example the HCP assertion-->
      <TokenType>urn:elga:bes:2013:HCP:assertion</TokenType>
      <RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Cancel</RequestType>
      <CancelTarget>
        <SecurityTokenReference xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
          <!--Reference to the Login Assertion to cancel in the SOAP Security Header-->
          <Reference URI="_8bbe7760-50c7-4103-8264-50a485479788" />
        </SecurityTokenReference>
      </CancelTarget>
    </RequestSecurityToken>
  </env:Body>
</env:Envelope>