You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by ebxml ebxml <eb...@yahoo.com.au> on 2002/11/25 05:47:49 UTC
signing of payload example
Hi all, i am new to XMLDSIG technology, plese excuse
me if i am asking silly
questions, we are implementing the ebXML MS 1.0 spec,
in that we need to sign
the Payloads, it can be MS-Word, or a Plain text file
etc. and after signing
the Reference element has to be in the main XML
document.
i tried to do that going through the JavaDoc of XMLSec
suite but i am getting
the reference element like below
<ds:Reference URI="cid:232"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
</ds:Reference>
from the above u can see the DigestValue is empty.
can some body give an example how to do that.
and i have one more question
in the XML Document which i am signing i have element
like below
<eb:StatusRequest eb:version="2.0">
<eb:RefToMessageId>20020829-030059-1@ninemsn.com</eb:RefToMessageId>
</eb:StatusRequest>
after signing( signature.sign(privateKey); ) it adds
other namespace declarations like below
<eb:StatusRequest eb:version="2.0"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<eb:RefToMessageId
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">20020829-030059-1@ninemsn.com</eb:RefToMessageId>
</eb:StatusRequest>
how can i avoid this.
Thanks
http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper
- Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper!