I am developing the issue of NFS-e for the city of Gaspar-SC via web service, in which it uses Thema company to process the notes.
I'm having trouble subscribing to NFS-e where I'm returning the error:
E515 - Error signing signature. - Delivered after signature.
I have already developed the NFS-e subscription to other cities using the same subscription method and it is working perfectly.
I would like to know the procedure used to generate the signature. What is the String (XML) that I should use to sign the RPS and the RPS LOT.
I am currently subscribing to Rps with the tag <InfRps id="XXX">...</InfRps>
and the LoteRps with the contents of the <LoteRps id="XXX">...</LoteRps>
tag.
When I sign the LoteRps
already included in the String are all RPS's already signed.
Here is the XML that I'm trying to subscribe to (it's already separate and commenting on each step of the signatures):