Hello!
I have some questions about namespace I think. When I sign a xml file named
"soap.xml", I use function xmlSecTmplTransformAddXPath(transformNode,BAD_CAST
"ancestor-or-self::PriceAndVolume",NULL) in souce_code and want to sign node
PriceAndVolume.
But there is a error when sign that xml file:
---------------------------------------------------------------------------------------------------------------------------
func=xmlSecTransformC14NExecute:file=c14n.c:line=445:obj=c14n:subj=xmlC14NExecute:error=5:libxml2
library function failed:
func=xmlSecTransformC14NPushXml:file=c14n.c:line=264:obj=c14n:subj=xmlSecTransformC14NExecute:error=1:xmlsec
library function failed:
func=xmlSecTransformDefaultPushXml:file=transforms.c:line=2383:obj=xpath:subj=xmlSecTransformPushXml:error=1:xmlsec
library function failed:
func=xmlSecTransformDefaultPushXml:file=transforms.c:line=2383:obj=enveloped-signature:subj=xmlSecTransformPushXml:error=1:xmlsec
library function failed:
func=xmlSecTransformCtxXmlExecute:file=transforms.c:line=1207:obj=unknown:subj=xmlSecTransformPushXml:error=1:xmlsec
library function failed:transform=enveloped-signature
func=xmlSecTransformCtxExecute:file=transforms.c:line=1267:obj=unknown:subj=xmlSecTransformCtxXmlExecute:error=1:xmlsec
library function failed:
func=xmlSecDSigReferenceCtxProcessNode:file=xmldsig.c:line=1568:obj=unknown:subj=xmlSecTransformCtxExecute:error=1:xmlsec
library function failed:
func=xmlSecDSigCtxProcessSignedInfoNode:file=xmldsig.c:line=804:obj=unknown:subj=xmlSecDSigReferenceCtxProcessNode:error=1:xmlsec
library function failed:node=Reference
func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=547:obj=unknown:subj=xmlSecDSigCtxProcessSignedInfoNode:error=1:xmlsec
library function failed:
func=xmlSecDSigCtxSign:file=xmldsig.c:line=303:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec
library function failed:
Error: signature failed
---------------------------------------------------------------------------------------------------------------------------
So I want to know what error is ? And how to resolve it.
And what is the meaning of the third parameter of function
xmlSecTmplTransformAddXPath()?
Thank you.
---------soap.xml--------------------------------------
<?xml version="1.0" encoding="GB2312"?>
<abc:Envelope xmlns:abc="mylover">
<abc:Body>
<abc:GetLastTradePriceResponse>
<abc:PriceAndVolume>
<abc:LastTradePrice>
34.5
</abc:LastTradePrice>
<abc:DayVolume>
10000
</abc:DayVolume>
</abc:PriceAndVolume>
</abc:GetLastTradePriceResponse>
</abc:Body>
</abc:Envelope>
-------------------------------------------------------
StackWood
[EMAIL PROTECTED]
2004-03-30
f??ē?%?q?q????囤?0jWけ???)fj?????ly