<!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 <env:Header></FONT><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><xenc:EncryptedKey></FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Garamond"></FONT></SPAN><SPAN LANG="fr-be"> <FONT FACE="Times New Roman"><xenc:CipherData><xenc:CipherValue></FONT></SPAN><SPAN LANG="en-us"> <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 "</FONT></SPAN><SPAN LANG="fr-be"><FONT FACE="Times New Roman">xmlSecTmplEncDataEnsureCipherValue" method works fine to add <xenc:EncryptedKey></FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Garamond"></FONT></SPAN><SPAN LANG="fr-be"> <FONT FACE="Times New Roman"><xenc:CipherData><xenc:CipherValue> 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"><?xml version="1.0" encoding="UTF-8" standalone="yes" ?> </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"> <env:Envelope xmlns:env="<A HREF="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</A>" xmlns:xsi="<A HREF="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>" xmlns:soapenc="<A HREF="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</A>" xmlns:xsd="<A HREF="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"> </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"> <env:Header> </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"> <wsse:Security xmlns:wsse="<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>" env:mustUnderstand="<B>1</B>"> </FONT></SPAN></P>
<P><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><wsse:BinarySecurityToken xmlns:wsu="<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>" ValueType="</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">" EncodingType="</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">" /> </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"> <dsig:Signature xmlns:dsig="<A HREF="http://www.w3.org/2000/09/xmldsig">http://www.w3.org/2000/09/xmldsig</A>#"> </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"> <dsig:SignedInfo> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><dsig:CanonicalizationMethod Algorithm="</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">" /> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><dsig:SignatureMethod Algorithm="</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">" /> </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"> <dsig:Reference> </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"> <dsig:Transforms> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><dsig:Transform Algorithm="</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">" /> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></dsig:Transforms> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><dsig:DigestMethod Algorithm="</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">" /> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><dsig:DigestValue /> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></dsig:Reference> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></dsig:SignedInfo> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><dsig:SignatureValue /> </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"> <dsig:KeyInfo> </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"> <wsse:SecurityTokenReference> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><wsse:Reference /> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></wsse:SecurityTokenReference> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></dsig:KeyInfo> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></dsig:Signature> </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"> <xenc:EncryptedKey xmlns:xenc="<A HREF="http://www.w3.org/2001/04/xmlenc">http://www.w3.org/2001/04/xmlenc</A>#"> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><xenc:EncryptionMethod Algorithm="</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">" /> </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"> <dsig:KeyInfo xmlns:dsig="<A HREF="http://www.w3.org/2000/09/xmldsig">http://www.w3.org/2000/09/xmldsig</A>#"> </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"> <wsse:SecurityTokenReference> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><wsse:KeyIdentifier xmlns:wsu="<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>" ValueType="</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">" EncodingType="</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">" /> </FONT></SPAN></P>
<P><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></wsse:SecurityTokenReference> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></dsig:KeyInfo> </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"> <xenc:CipherData> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><xenc:CipherValue /> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></xenc:CipherData> </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"> <xenc:ReferenceList> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"><xenc:DataReference /> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></xenc:ReferenceList> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></xenc:EncryptedKey> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></wsse:Security> </FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT FACE="Times New Roman"></env:Header></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 : +352 45 35 11 6353</FONT></SPAN><SPAN LANG="en-us"> </SPAN>
<BR><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">Fax : +352 45 35 11 6341</FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">Mobile : +352 021 359 712</FONT></SPAN>
<BR><SPAN LANG="fr-be"><FONT COLOR="#0000FF" FACE="Garamond">E-mail :<U> maffiam@diebold.com</U></FONT></SPAN>
</P>
</BODY>
</HTML>