[xmlsec] Read FAQ 3.4 (XPointer) but still cannot seem to get things to work......

Steve scullum at nildram.co.uk
Sun May 15 11:31:30 PDT 2005


Thanks for the reply Aleksey :-

A dump of the error i receive is pasted below... i think its the XPointer 
problem which you note in the FAQ - but i seem to be misunderstanding 
something fundemental.  I have stepped through the code with a debugger and 
still cannot figure out what command line parameters i must type.  ie--
    xmlsec --verify --id--attr:wsse-c26651c0-c209-11d9-9834-e9a275261f99 
nocert.xml

The output produced by is shown below
    xmlsec --verify nocert.xml > file.txt 2>&1

.. dump of file.txt...

func=xmlSecXPathDataExecute:file=..\src\xpath.c:line=273:obj=unknown:subj=xmlXPtrEval:error=5:libxml2 
library function 
failed:expr=xpointer(id('wsse-c26651c0-c209-11d9-9834-e9a275261f99'))
func=xmlSecXPathDataListExecute:file=..\src\xpath.c:line=356:obj=unknown:subj=xmlSecXPathDataExecute:error=1:xmlsec 
library function failed:
func=xmlSecTransformXPathExecute:file=..\src\xpath.c:line=466:obj=xpointer:subj=xmlSecXPathDataExecute:error=1:xmlsec 
library function failed:
func=xmlSecTransformDefaultPushXml:file=..\src\transforms.c:line=2371:obj=xpointer:subj=xmlSecTransformExecute:error=1:xmlsec 
library function failed:
func=xmlSecTransformCtxXmlExecute:file=..\src\transforms.c:line=1207:obj=unknown:subj=xmlSecTransformPushXml:error=1:xmlsec 
library function failed:transform=xpointer
func=xmlSecTransformCtxExecute:file=..\src\transforms.c:line=1267:obj=unknown:subj=xmlSecTransformCtxXmlExecute:error=1:xmlsec 
library function failed:
func=xmlSecDSigReferenceCtxProcessNode:file=..\src\xmldsig.c:line=1568:obj=unknown:subj=xmlSecTransformCtxExecute:error=1:xmlsec 
library function failed:
func=xmlSecDSigCtxProcessSignedInfoNode:file=..\src\xmldsig.c:line=804:obj=unknown:subj=xmlSecDSigReferenceCtxProcessNode:error=1:xmlsec 
library function failed:node=Reference
func=xmlSecDSigCtxProcessSignatureNode:file=..\src\xmldsig.c:line=547:obj=unknown:subj=xmlSecDSigCtxProcessSignedInfoNode:error=1:xmlsec 
library function failed:
func=xmlSecDSigCtxVerify:file=..\src\xmldsig.c:line=366:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec 
library function failed:
Error: signature failed
ERROR
SignedInfo References (ok/all): 0/1
Manifests References (ok/all): 0/0
Error: failed to verify file "nocert.xml"


XMLFILE ::

<?xml version="1.0" encoding="UTF-8"?>
 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header>
     <wsse:Security
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">
       <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
         <ds:SignedInfo>
           <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
           <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
           <ds:Reference URI="#wsse-c26651c0-c209-11d9-9834-e9a275261f99">
             <ds:Transforms>
               <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
             </ds:Transforms>
             <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
             <ds:DigestValue>+G19/tWZSlCS894TQvdJYrVsb+4=</ds:DigestValue>
           </ds:Reference>
           <ds:Reference URI="#wsse-c26121a0-c209-11d9-9834-e9a275261f99">
             <ds:Transforms>
               <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
             </ds:Transforms>
             <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
             <ds:DigestValue>4B9ZewNptVgz0MpJBpaoI6b0Oks=</ds:DigestValue>
           </ds:Reference>
         </ds:SignedInfo>
         <ds:SignatureValue>MCwCFFiTYY7/B+tYizrqccMZJKVQC6RyAhQUoVXtXfNUVEFZlaE3USajTEqUzQ==</ds:SignatureValue>
       </ds:Signature>
     </wsse:Security>
     <wsu:Timestamp
xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
       <wsu:Created
wsu:Id="wsse-c26121a0-c209-11d9-9834-e9a275261f99">2005-05-11T10:45:15Z</wsu:Created>
     </wsu:Timestamp>
   </soapenv:Header>
   <soapenv:Body xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
wsu:Id="wsse-c26651c0-c209-11d9-9834-e9a275261f99">
     <ns1:secountResponse xmlns:ns1="MYSOAPSERVER"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
       <secountReturn xsi:type="xsd:string">
         <secount_results>
           <disclaimer><REMOVED></disclaimer>
           <header>
               <REMOVED>
           </header>
           <results>
              <REMOVED>
           </results>
         </secount_results>
       </secountReturn>
     </ns1:secountResponse>
   </soapenv:Body>
 </soapenv:Envelope>









More information about the xmlsec mailing list