Re: Enveloping signature: wrong document err.

2005-02-02 Thread def abc
Raul, Heiner, Bonjour :-) Thanks very much for your help: I now have a beautiful enveloping signature :-) Thanks too for the link to the CreateEnveloping sample. I was using the AxisSigner but hadn't seen that other example ! BTW, as for the intent, it's just to try out this API. I'm (quite) famil

Re: Enveloping signature: wrong document err.

2005-02-01 Thread Raul Benito
Bon Soir, Axelle, First of all don“t use crimson as XML parser it can you give some head aches. Anyway, your problem can be fix by using doc.importNode function. But I don't understand your intends. Regards, Raul http://r-bg.com On Tue, 1 Feb 2005 17:33:53 +0100 (CET), def abc <[EMAIL PROTECTED

Re: Enveloping signature: wrong document err.

2005-02-01 Thread Heiner Westphal
Axelle wrote: [ snip ] Wow, you are fast. Sounds familiar. Took me some time to sort it out once upon a time... // create the ds:Object Document doc = db.newDocument(); ObjectContainer obj = new ObjectContainer(input); Instead of: doc.appendChild(obj.getElement()); use: boolean deepCopy = true; Nod

Enveloping signature: wrong document err.

2005-02-01 Thread def abc
Hi all, I'm trying to build an enveloping signature: - the input is a Document. I want to sign this. - the output is a FileOutputStream. I want to write the enveloping signature in this file. But it doesn't work: I get a "org.apache.crimson.tree.DomEx: WRONG_DOCUMENT_ERR : Ce noeud n''appartien