I've got some SPML that I'd like to send to a client with a digital signature. Looking at the spec it seems like using an enveloping signature would be the easiest thing to do. This would allow me to send just one xml document, without having to use another standard like SOAP-SEC. The ObjectContainer only allows inserting of Nodes, however when I try to insert my SPML I get the following exception: WRONG_DOCUMENT_ERR: That node doesn't belong in this document.
Can anyone offer any advice on this problem? Thanks.
Don't make a new document for the signature when you instantiate it, but use the document from your SPML.
