Hello,
How to sign XML doc as per the attached xsd file?
Currently the file is signed but the signature tags do not have 'ds:' prefix.
For example I'm geting:
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
but the system expects:
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
and returns:
‘cvc-complex-type.2.4.a: Invalid content was found starting with element 'Signature'.’
Thanks in advance.

It didn't help.
Can I have the empty tags to be generated like this:
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform>
not generated:
<ds:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />

Your requirement is not compliant to XMLDSig standard and as such is not supported by XMLBlackbox. The only idea that comes to my mind is to load the XML after generation, move the nodes and save it back. Since it's a signature and not signed contents, moving the node won't break the signature.

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.