Hi
I'm trying to Sign an XML Document Using SignedXml.Compu teSignature from the
namespace System.Security .Cryptography.X ml.
I need the XML in the following way, with the prefix DS ahead the tag name:
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInf o>
<ds:Canonicaliz ationMethod
Algorithm="http ://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<ds:SignatureMe thod Algorithm="http ://www.w3.org/2000/09/xmldsig#rsa-sha1"
/>
- <ds:Reference URI="#1003 Fri Jun 06 14:56:14 VET 2008">
- <ds:Transform s>
<ds:Transform Algorithm="http ://www.w3.org/TR/2001/REC-xml-c14n-20010315"
/>
</ds:Transforms>
<ds:DigestMetho d Algorithm="http ://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue >xctwBpj1DjKCnG WLnxSXrFjv0Xk=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureVa lue>WI48iJNIBsQ JDnMx5OVhQMFL7/AvKR7/+SWWpvqGOm
vazdF64zBvrSskY kPivUvFIL0toB10 eqNbXbPIfc/a1XSq0YvOBlMtaX
+ykN/AHZl8FkLPNokQHE wPuxvo2Y+bMt5N9 xG6c=</ds:SignatureVal ue>
- <ds:KeyInfo>
<ds:KeyName>100 3</ds:KeyName>
</ds:KeyInfo>
- <ds:Object Id="1003 Fri Jun 06 14:56:14 VET 2008">
- <Originante_ACH >
<num_orden_orig inante>Datos... ..</num_orden_origi nante>
</Originante_ACH>
</ds:Object>
</ds:Signature>
I have the same XML but without the ds prefix. Anybody kows how to add it ?
Tanks
I'm trying to Sign an XML Document Using SignedXml.Compu teSignature from the
namespace System.Security .Cryptography.X ml.
I need the XML in the following way, with the prefix DS ahead the tag name:
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInf o>
<ds:Canonicaliz ationMethod
Algorithm="http ://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<ds:SignatureMe thod Algorithm="http ://www.w3.org/2000/09/xmldsig#rsa-sha1"
/>
- <ds:Reference URI="#1003 Fri Jun 06 14:56:14 VET 2008">
- <ds:Transform s>
<ds:Transform Algorithm="http ://www.w3.org/TR/2001/REC-xml-c14n-20010315"
/>
</ds:Transforms>
<ds:DigestMetho d Algorithm="http ://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue >xctwBpj1DjKCnG WLnxSXrFjv0Xk=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureVa lue>WI48iJNIBsQ JDnMx5OVhQMFL7/AvKR7/+SWWpvqGOm
vazdF64zBvrSskY kPivUvFIL0toB10 eqNbXbPIfc/a1XSq0YvOBlMtaX
+ykN/AHZl8FkLPNokQHE wPuxvo2Y+bMt5N9 xG6c=</ds:SignatureVal ue>
- <ds:KeyInfo>
<ds:KeyName>100 3</ds:KeyName>
</ds:KeyInfo>
- <ds:Object Id="1003 Fri Jun 06 14:56:14 VET 2008">
- <Originante_ACH >
<num_orden_orig inante>Datos... ..</num_orden_origi nante>
</Originante_ACH>
</ds:Object>
</ds:Signature>
I have the same XML but without the ds prefix. Anybody kows how to add it ?
Tanks