Hi,
I am creating a digital signature (enveloped) using the SignedXml class. The
Reference Uri is set to "". Everything seems fine when saved to file, and the
signature verifies OK if I reload the file and use CheckSignature(). Great.
However, if I validate the file using a set of schemas (EML from OASIS), I
get an error message from the XmlValidatingReader telling me :
"The 'URI' attribute has an invalid value according to its data type"
This being the URI as in :
<Reference URI="">
which is generated by the SignedXml class, and is defined by the W3C digital
signature schema.
Do I need to include some more meaningful sort of Uri, even though "" is
valid.
I am concerned because the system I am working on will send and receive
files - so even if I include a non-empty Uri, I may receive an empty Uri.
I think that my only option is to edit the schemas so that digital
signatures are not validated or so that the URI attribute is of type string
and therefore "" is valid. But this seems like a bad solution.
This doesn't seem very satisfactory, perhaps it is a rare circumstance -
does any one have any alternative suggestions?
Many thanks
--
Phil Hobgen
barbari ltd
Southampton, UK