[xmlsec] How to apply faq 3.2?&In-Reply-To=20041015T142712Z_7A3A000E0000@ascott.dk

Erik F. Andersen ea at ascott.dk
Mon Oct 18 22:56:52 PDT 2004


Thanks,

I managed to add the DTD på my XML-file but I still can't sign the document. The Reference URI fails. I can sign the exact same document if I use Reference ID. Any idea what is wrong? Below is what I figure is the most important parts of my XML.

The call fails in xpath.c line 273 with the message
expr=xpointer(id('Id-9E70F376-B42E-4EAD-B5B3-8ED6F9CB5906'))

Regards,
Erik

<?xml version="1.0"?>
<!DOCTYPE SOAP-ENV:Envelope [
<!ATTLIST SOAP-ENV:Body wsu:Id ID #IMPLIED>
]>
<SOAP-ENV:Envelope>
 ...
 <SOAP-ENV:Header>
 ...
  <wsse:Security ...>
  ...
   <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
     <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> 
     <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> 
     <Reference URI="#Id-9E70F376-B42E-4EAD-B5B3-8ED6F9CB5906">
      ...
     </Reference>
    </SignedInfo>
   </Signature>
  </wsse:Security>
 </SOAP-ENV:Header>
 <SOAP-ENV:Body xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" wsu:Id="Id-9E70F376-B42E-4EAD-B5B3-8ED6F9CB5906" ...>
  ...
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>




More information about the xmlsec mailing list