Neispravan digitalni potpis........... again

Dec 16, 2012 at 8:01 PM
Edited Dec 16, 2012 at 8:04 PM

hey boys and gals,

my Croatian is not very well :D so sorry for my English. I'm trying to send a request to

https://cistest.apis-it.hr:8449/FiskalizacijaServiceTest

but again and again and again i got that my signature is wrong, i'll post the requests and the response and they r printed in a single line.. oh and i'm using java's apache xml security

the signature algorithm is

"http://www.w3.org/2000/09/xmldsig#rsa-sha1"
the canonicalization method is


"http://www.w3.org/2001/10/xml-exc-c14n#"

and the two transforms:


http://www.w3.org/2000/09/xmldsig#enveloped-signature

http://www.w3.org/2001/10/xml-exc-c14n#"

 

First I create the PoslovniProstorZahtjev node and sub nodes then sign this document using the above settings then wrap it in envelope and send it.

Before i send it I verify the envelope with apache xml security and XML-DSig  two different libraries and both are telling me that the signature is valid... and when i check the response guess what ............................. Neispravan digitalni potpis :(;(

soo a little help will be appreciated, thanks in advance boys and gals

signed_element.xml

signed-envelope.xml

Dec 17, 2012 at 11:48 AM

Perhaps the problem is that soap envelope is not correct (<?xml version="1.0" encoding="UTF-8"?>)

your file:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Envelope sould be the first line in xml

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <SOAP-ENV:Body>
  <RacunZahtjev xmlns="http://www.apis-it.hr/fin/2012/types/f73" Id="RacunZahtjev">
   <Zaglavlje>