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;
Node payloadElem
   = signedDoc.importNode(doc.getDocumentElement(), deepCopy);
obj.appendChild(payloadElem);
doc.appendObject(obj);

That should do the trick.

Regards,

Heiner

Reply via email to