<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>How to ...</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT FACE="Garamond">Hi,</FONT>
</P>

<P><FONT FACE="Garamond">I would like to set up the &lt;env:Header&gt;</FONT><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;xenc:EncryptedKey&gt;</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Garamond"></FONT></SPAN><SPAN LANG="fr-be"> <FONT FACE="Times New Roman">&lt;xenc:CipherData&gt;&lt;xenc:CipherValue&gt;</FONT></SPAN><SPAN LANG="en-us">&nbsp;<FONT FACE="Garamond"> tag with the generated session key . I cannot find any method to allow this.</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT FACE="Garamond">The &quot;</FONT></SPAN><SPAN LANG="fr-be"><FONT FACE="Times New Roman">xmlSecTmplEncDataEnsureCipherValue&quot; method works fine to add &lt;xenc:EncryptedKey&gt;</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Garamond"></FONT></SPAN><SPAN LANG="fr-be"> <FONT FACE="Times New Roman">&lt;xenc:CipherData&gt;&lt;xenc:CipherValue&gt; into the body, but I cannot figure out on how to make it work for the header.</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>

<P><SPAN LANG="en-us"><FONT FACE="Garamond">Could somebody help?</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT FACE="Garamond">Here is the header I'm using</FONT></SPAN>
</P>

<P><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot; ?&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;env:Envelope xmlns:env=&quot;<A HREF="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</A>&quot; xmlns:xsi=&quot;<A HREF="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>&quot; xmlns:soapenc=&quot;<A HREF="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</A>&quot; xmlns:xsd=&quot;<A HREF="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>&quot;&gt; </FONT></SPAN></P>

<P><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;env:Header&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;wsse:Security xmlns:wsse=&quot;<A HREF="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd</A>&quot; env:mustUnderstand=&quot;<B>1</B>&quot;&gt; </FONT></SPAN></P>

<P><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;wsse:BinarySecurityToken xmlns:wsu=&quot;<A HREF="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</A>&quot; ValueType=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</A></FONT></B><FONT FACE="Times New Roman">&quot; EncodingType=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary</A></FONT></B><FONT FACE="Times New Roman">&quot; /&gt; </FONT></SPAN></P>

<P><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;dsig:Signature xmlns:dsig=&quot;<A HREF="http://www.w3.org/2000/09/xmldsig">http://www.w3.org/2000/09/xmldsig</A>#&quot;&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;dsig:SignedInfo&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;dsig:CanonicalizationMethod Algorithm=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://www.w3.org/2001/10/xml-exc-c14n">http://www.w3.org/2001/10/xml-exc-c14n</A>#</FONT></B><FONT FACE="Times New Roman">&quot; /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;dsig:SignatureMethod Algorithm=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://www.w3.org/2000/09/xmldsig#rsa-sha1">http://www.w3.org/2000/09/xmldsig#rsa-sha1</A></FONT></B><FONT FACE="Times New Roman">&quot; /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;dsig:Reference&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;dsig:Transforms&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;dsig:Transform Algorithm=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://www.w3.org/2001/10/xml-exc-c14n">http://www.w3.org/2001/10/xml-exc-c14n</A>#</FONT></B><FONT FACE="Times New Roman">&quot; /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/dsig:Transforms&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;dsig:DigestMethod Algorithm=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://www.w3.org/2000/09/xmldsig#sha1">http://www.w3.org/2000/09/xmldsig#sha1</A></FONT></B><FONT FACE="Times New Roman">&quot; /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;dsig:DigestValue /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/dsig:Reference&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/dsig:SignedInfo&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;dsig:SignatureValue /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;dsig:KeyInfo&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;wsse:SecurityTokenReference&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;wsse:Reference /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/wsse:SecurityTokenReference&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/dsig:KeyInfo&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/dsig:Signature&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;xenc:EncryptedKey xmlns:xenc=&quot;<A HREF="http://www.w3.org/2001/04/xmlenc">http://www.w3.org/2001/04/xmlenc</A>#&quot;&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;xenc:EncryptionMethod Algorithm=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://www.w3.org/2001/04/xmlenc#rsa-1_5">http://www.w3.org/2001/04/xmlenc#rsa-1_5</A></FONT></B><FONT FACE="Times New Roman">&quot; /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;dsig:KeyInfo xmlns:dsig=&quot;<A HREF="http://www.w3.org/2000/09/xmldsig">http://www.w3.org/2000/09/xmldsig</A>#&quot;&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;wsse:SecurityTokenReference&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;wsse:KeyIdentifier xmlns:wsu=&quot;<A HREF="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd</A>&quot; ValueType=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier</A></FONT></B><FONT FACE="Times New Roman">&quot; EncodingType=&quot;</FONT><B><FONT FACE="Times New Roman"><A HREF="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary</A></FONT></B><FONT FACE="Times New Roman">&quot; /&gt; </FONT></SPAN></P>

<P><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/wsse:SecurityTokenReference&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/dsig:KeyInfo&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;xenc:CipherData&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;xenc:CipherValue /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/xenc:CipherData&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"></SPAN><A HREF=""><SPAN LANG="fr-be"><U><FONT COLOR="#0000FF" FACE="Times New Roman">-</FONT></U></SPAN></A><SPAN LANG="fr-be"><FONT FACE="Times New Roman"> &lt;xenc:ReferenceList&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;xenc:DataReference /&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/xenc:ReferenceList&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/xenc:EncryptedKey&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/wsse:Security&gt; </FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman">&lt;/env:Header&gt;</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT FACE="Garamond">Regards</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT FACE="Garamond">Mario</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">Mario Maffia</FONT></SPAN>
</P>

<P><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">DIEBOLD Luxembourg</FONT></SPAN>
</P>

<P><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">Tel&nbsp;&nbsp;&nbsp;&nbsp; : +352 45 35 11 6353</FONT></SPAN><SPAN LANG="en-us"> </SPAN>

<BR><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">Fax&nbsp;&nbsp;&nbsp;&nbsp; : +352 45 35 11 6341</FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">Mobile&nbsp; : +352 021 359 712</FONT></SPAN>

<BR><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">E-mail&nbsp; :<U> maffiam@diebold.com</U></FONT></SPAN>
</P>

</BODY>
</HTML>