I've got string:
$string = '<Predstavitev xmlns="http://www.sigen.si/PodpisaniDokument" Id="MyVisualisation2"><Podatki ca="SIGEN-CA" dsPodjetja="" dsUporabnika="12345678" emso="1212912500444" maticna="" serial="2462933412018"/></Predstavitev>';
and digest value of it should be
tmLGK3IVc1mC/r5ScUKXQ46wcCA=
but when I use this PHP code
echo base64_encode(hash('SHA1', $string, true));
the output is
yszGh284QybUiyVNLfQlkh358qQ=
In SOAP is reference for canonicalization method (http://www.w3.org/TR/2001/REC-xml-c14n-20010315) and digest method algorithm (http://www.w3.org/2000/09/xmldsig#sha1).
Thanks for help!
tmLGK3IVc1mC/r5ScUKXQ46wcCA=
? – Benoit Esnard