1
I am developing the issuance of NFS-e to the city of Gaspar-SC via web service, in which uses the company Thema for banknote processing.
I’m having trouble signing the NFS-e where is returning the error:
E515 - Signature validation error. - Shipment tampered after signature.
I’ve developed NFS-e subscription for other cities using the same subscription method and it’s working perfectly.
I would like to know the procedure used to generate the signature. Which String(XML) should I use to sign RPS and BATCH RPS.
I’m currently signing Rps with the tag <InfRps id="XXX">...</InfRps>
and Loterps with tag content <LoteRps id="XXX">...</LoteRps>
.
When I sign the LoteRps
is already included in the String all signed RPS’s.
Follow the XML I’m trying to sign in to (it’s already separate and commenting on each signature step):