Hi Aleksey,<br><br>i want to sign my XML-Message with x509 and put a timestamp to the header. Also i want to sign just the timestamp and the body (like the wss from Apache-AXIS). I want to use your lib but i don't know how to sign just 2 Parts and make a reference for them in the signature like this:<br><br>soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;<br>- &lt;soapenv:Header&gt;<br>- &lt;wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;<br>&nbsp; &lt;wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
 wsu:Id="CertId-5398314"&gt;MIIDajCCAxSgAwIBAgIBKzANBgkqhkiG9w0BAQUFADBbMQswCQYDVQQGEwJERTEMMAoGA1UECBMDTlJXMQ4wDAYDVQQHEwVFc3NlbjEMMAoGA1UEChMDVFNJMQwwCgYDVQQLEwNUU0kxEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0wNzA3MjAxMTI2MTVaFw0xNzA3MTcxMTI2MTVaMGoxCzAJBgNVBAYTAkRFMQowCAYDVQQIEwFCMQ8wDQYDVQQHEwZCZXJsaW4xFTATBgNVBAoTDEZsZXhmb24gR21iSDEMMAoGA1UECxMDRFNMMRkwFwYDVQQDExBNYWhtb3VkIEVsIERhb3VkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2AYzj7C3MeHroLsbP0tlO9pUtgkYrs2qlrjWHoPSMfYn0s8mv1g/KSTG83kZvsH9l3a2DgAol4abNSK7XLKVsUSsxJDgJV6xejN4dx7GcJjxIvUKPxtKeptU7pkhLxQOYfg4OuHTjD5TTMPrqaxmwNPEo7QRRvI5A7Rv+VaLA4HgorhX+6EoguLhUuhFrjqag3CJTa3JeKTF5tz9euIdvx/53+ULjGvSCxCLz8abqNPLAR6j8BUqmI9iPnwkyslG364k6QhdmhlAWXR0/R8J2+lNhWz78QIc9zQTCepfVp5y/9msLF7OYoUmYDGgf0HIv43h/OLJcaZgMnEnNUg19wIDAQABo4HrMIHoMAkGA1UdEwQCMAAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2VuZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBQ9py+EbHAoR/LhEX2fx9QIvfm24TCBjQYDVR0jBIGFMIGCgBSbd/5bKwuXMTzHXyKvTeub/IE6OqFfpF0wWzELMAkGA1UEBhMCREUxDDAKBgNVBAgTA05S
VzEOMAwGA1UEBxMFRXNzZW4xDDAKBgNVBAoTA1RTSTEMMAoGA1UECxMDVFNJMRIwEAYDVQQDEwlsb2NhbGhvc3SCCQDJpL3Hev69jzANBgkqhkiG9w0BAQUFAANBADffCQnJwEcdaBtOu86GicEcMGrGLg7yTF6QoXaa43qiFhrs9oDkmLr0Z9B0D5vdq3ztBU5XXxnHqXWLWdNZ57A=&lt;/wsse:BinarySecurityToken&gt; <br>- &lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-6504030"&gt;<br>- &lt;ds:SignedInfo&gt;<br>&nbsp; &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt; <br>&nbsp; &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /&gt; <br>- &lt;ds:Reference URI="#Timestamp-27535250"&gt;<br>- &lt;ds:Transforms&gt;<br>&nbsp; &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt; <br>&nbsp; &lt;/ds:Transforms&gt;<br>&nbsp; &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /&gt; <br>&nbsp; &lt;ds:DigestValue&gt;8jNGFeIQpXdFPxgPHeCj7i77cxo=&lt;/ds:DigestValue&gt; <br>&nbsp; &lt;/ds:Reference&gt;<br>- &lt;ds:Reference
 URI="#id-8949356"&gt;<br>- &lt;ds:Transforms&gt;<br>&nbsp; &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt; <br>&nbsp; &lt;/ds:Transforms&gt;<br>&nbsp; &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /&gt; <br>&nbsp; &lt;ds:DigestValue&gt;POniW5uYnA3py8dCm1iu8Yr0pac=&lt;/ds:DigestValue&gt; <br>&nbsp; &lt;/ds:Reference&gt;<br>&nbsp; &lt;/ds:SignedInfo&gt;<br>&nbsp; &lt;ds:SignatureValue&gt;AiHlclEZneLXRCJ3qa5g0QJ/UvDv7DUwDnpbbtH3df1zPOkDkEzoDu94+eSCDJjGx1NF0ZUx/IXE /3cfkHjBK/AfxRj72DCcgrEGUkyx27LM2eR2MjdbPZu8sXX4XhAmH0sGJLz+QHO0PqAkByKfKB+V 2EhU+RrUmAIDEtf8QFMhwSWwovk7MhZIESZ5U8VJVxvhz204zE9pcgBsY/LqRrH7lWupzd+TGu4k Fgp7TpZoy/31CebcGlNR18DCeTwPkTkPBCJRSvEFZjbfvzR6vd1XH4BET/rwPd6n4NKLLwqoooiB ALKtxQg/ns+MowGQYsyfk5+3IkaGO9fJwd44MA==&lt;/ds:SignatureValue&gt; <br>- &lt;ds:KeyInfo Id="KeyId-22507120"&gt;<br>- &lt;wsse:SecurityTokenReference
 xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-28678543"&gt;<br>&nbsp; &lt;wsse:Reference URI="#CertId-5398314" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" /&gt; <br>&nbsp; &lt;/wsse:SecurityTokenReference&gt;<br>&nbsp; &lt;/ds:KeyInfo&gt;<br>&nbsp; &lt;/ds:Signature&gt;<br>- &lt;wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-27535250"&gt;<br>&nbsp; &lt;wsu:Created&gt;2007-08-10T12:11:37Z&lt;/wsu:Created&gt; <br>&nbsp; &lt;wsu:Expires&gt;2007-08-10T12:16:37Z&lt;/wsu:Expires&gt; <br>&nbsp; &lt;/wsu:Timestamp&gt;<br>&nbsp; &lt;/wsse:Security&gt;<br>&nbsp; &lt;/soapenv:Header&gt;<br>- &lt;soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-8949356"&gt;<br>- &lt;ns1:execute
 xmlns:ns1="http://www.telekom.de/t-com/resaleDSL/webservices" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;<br>&nbsp; &lt;xmldata xsi:type="xsd:string"&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt; some text&lt;/xmldata&gt; <br>&nbsp; &lt;/ns1:execute&gt;<br>&nbsp; &lt;/soapenv:Body&gt;<br>&nbsp; &lt;/soapenv:Envelope&gt;<br><br><br>thank you for any help!!!<br><br>max pade<br><p>&#32;
      <hr size=1><a href=" http://de.rd.yahoo.com/evt=48210/*http://de.answers.yahoo.com/;_ylc=X3oDMTEyYTEwYzVhBF9TAzIxMTQ3MTgxOTAEc2VjA21haWwEc2xrA3RhZ2xpbmU-" target=_new >Yahoo! Clever</a> - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen.