I am developing the integration of a system to issue Nfse to Belo Horizonte are happening 2 situations that only with this prefecture that I have developed are happening, already we have integrated several prefectures and this is the one that is giving more work. now)
1) By the ABRASF manual the RPS Signature tag is not mandatory, at least that's what I understood in the manual where it says:
TcRPS | Signature | Type | dsig: Signature | Occurrence 0-1.
page 27 of the BH integration manual - BH manual link , if I do not sign the RPS, the following message is returned by the BH test web service:
<Codigo>E176</Codigo>
<Mensagem>Rps sem assinatura.</Mensagem>
If I subscribe to RPS and try to issue it, it says "XML with signature error", but I do not understand why, in the same way that I signed the Batch, I am signing the RPS, the other prefectures we have approved. The XML file is the same as the one available on the BH prefecture's website.
Return of when tag InfRPS is signed:
<Codigo>E174</Codigo>
<Mensagem>Arquivo enviado com erro na assinatura.</Mensagem>
2) The other situation that is happening is, I have two RPSs in the queue, I send an ok return one of these errors or if the RPS was converted to Nfse, when I make the second sending of the other RPS,