If i use the following code, the signature get added and successfully validate by server$objDSig = new XMLSecurityDSig();
$objDSig->setCanonicalMethod(XMLSecurityDSig::C14N);
$node = $objDSig->addObject($dom->documentElement);
//print_r($node);exit;
$objDSig->addReference($node, XMLSecurityDSig::SHA1, array('
http://www.w3.org/2000/09/xmldsig#enveloped-signature'), array('force_uri' => TRUE));
if i use the following $objDSig = new XMLSecurityDSig();
$objDSig->setCanonicalMethod(XMLSecurityDSig::C14N);
$objDSig->addReference($dom, XMLSecurityDSig::SHA1, array('
http://www.w3.org/2000/09/xmldsig#enveloped-signature'),array('force_uri' => TRUE));
its not get validated.
What's the issue here. Actually I need Reference URI="".
Please reply .