After successfully submitting the R1000 event through the questions:
- C # - EFD Reinf v1_04_00 - How to instantiate and populate all Events properties?
- How to consume EFD-Reinf WebService in C #? (Shipping Events)
I get the return on the variable and I need to treat it:
var retornoEnvioXElement = wsClient.ReceberLoteEventos(doc.Root);
? returnEnvironmentXElement
{<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/retornoLoteEventos/v1_04_00">
<retornoLoteEventos id="IDF4EBD1BA1DDE6A0B288DD85C8DF1E535">
<ideTransmissor>
<IdTransmissor>01628604000140</IdTransmissor>
</ideTransmissor>
<status>
<cdStatus>0</cdStatus>
<descRetorno>SUCESSO</descRetorno>
</status>
<retornoEventos>
<evento id="ID1016286040000002018121309305100001">
<Reinf xmlns="http://www.reinf.esocial.gov.br/schemas/evtTotal/v1_04_00">
<evtTotal id="ID-1066770329">
<ideEvento>
<perApur />
</ideEvento>
<ideContri>
<tpInsc>1</tpInsc>
<nrInsc>01628604</nrInsc>
</ideContri>
<ideRecRetorno>
<ideStatus>
<cdRetorno>0</cdRetorno>
<descRetorno>SUCESSO</descRetorno>
</ideStatus>
</ideRecRetorno>
<infoRecEv>
<dhProcess>2018-12-13T09:31:39.1306938-02:00</dhProcess>
<tpEv>1000</tpEv>
<idEv>ID1016286040000002018121309305100001</idEv>
<hash>dw94b8lBK83zUyVwc6p8obI8F1fc/Ag0NkU2QHWi/Og=</hash>
</infoRecEv>
<infoTotal>
<nrRecArqBase>14009-04-1000-1812-14009</nrRecArqBase>
<ideEstab>
<tpInsc>0</tpInsc>
</ideEstab>
</infoTotal>
</evtTotal>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<Reference URI="#ID-1066770329">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<DigestValue>sfY6hV4oPUQhpjcLMZa61Odj8xEQOvAdyLXJOYfvS4g=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>[...]</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>[...]</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</Reinf>
</evento>
</retornoEventos>
</retornoLoteEventos>
</Reinf>}
I ask: Which fields should I store for subsequent queries of what was already sent?
I was expecting the nrProtEntr
"Event delivery protocol number" but it did not come in this return. Is that right?
Is only <hash>dw94b8lBK83zUyVwc6p8obI8F1fc/Ag0NkU2QHWi/Og=</hash>
sufficient to retrieve Delivery Receipts in the future?