nfephp-org/sped-efdreinf

Retorno retornoRecibosChaveEvento-v1_05_01.xsd

jesserovira opened this issue · 5 comments

Prezados,

qual consulta ou qual método que produz esse retorno? Preciso recuperar o recibo e protocolo, mas não consigo obter esse resulta do XSD nos metodos que estou utilizando.

Aguardo, grato pelo apoio.

Todas as consultas disponíveis estão exemplificadas nos exemplos, para melhor entendimento leia a documentação da Receita

Acredito que esse retorno seja referente ao item f na página 33 do manual

f) Recuperação do RECIBO DE ENTREGA do evento.

Rob, obrigado pelo retorno. Aqui, chance de abusar da sua boa vontade, mas qual manual? Eu to realmente bem perdido. Ja li varias documentações, e não to evoluindo.

Porque no caso do retorno do evento de envio, o que recebi foi o seguinte:

"{
"ReceberLoteEventosResponse": {
"ReceberLoteEventosResult": {
"Reinf": {
"retornoLoteEventos": {
"@attributes": {
"id": "ID77C54070256B2C12662E74608C45A28C"
},
"ideTransmissor": {
"IdTransmissor": "25499614000190"
},
"status": {
"cdStatus": "0",
"descRetorno": "SUCESSO"
},
"retornoEventos": {
"evento": {
"@attributes": {
"id": "ID1254996140000002022021315352600008"
},
"Reinf": {
"evtTotal": {
"@attributes": {
"id": "ID2103686649"
},
"ideEvento": {
"perApur": []
},
"ideContri": {
"tpInsc": "1",
"nrInsc": "25499614"
},
"ideRecRetorno": {
"ideStatus": {
"cdRetorno": "0",
"descRetorno": "SUCESSO"
}
},
"infoRecEv": {
"dhProcess": "2022-02-13T15:35:27.3625343-03:00",
"tpEv": "1000",
"idEv": "ID1254996140000002022021315352600008",
"hash": "x6oWiZkCRKwqJe\/9okIOcg6QTzh7\/xKrHJGmh7YhgxY="
},
"infoTotal": {
"nrRecArqBase": "82850-04-1000-2202-82850"
}
},
"Signature": {
"SignedInfo": {
"CanonicalizationMethod": {
"@attributes": {
"Algorithm": "http:\/\/www.w3.org\/TR\/2001\/REC-xml-c14n-20010315"
}
},
"SignatureMethod": {
"@attributes": {
"Algorithm": "http:\/\/www.w3.org\/2001\/04\/xmldsig-more#rsa-sha256"
}
},
"Reference": {
"@attributes": {
"URI": "#ID2103686649"
},
"Transforms": {
"Transform": [
{
"@attributes": {
"Algorithm": "http:\/\/www.w3.org\/2000\/09\/xmldsig#enveloped-signature"
}
},
{
"@attributes": {
"Algorithm": "http:\/\/www.w3.org\/TR\/2001\/REC-xml-c14n-20010315"
}
}
]
},
"DigestMethod": {
"@attributes": {
"Algorithm": "http:\/\/www.w3.org\/2001\/04\/xmlenc#sha256"
}
},
"DigestValue": "CW4kBJw0H5y5wyhDv68AxHZ1muMUhic3vDUtU4SJkTs="
}
},
"SignatureValue": "eLBKnGhk739P0MiZ6RaEU29TIVR1unEb0LZs7mzADVn78eygvZMNYAYRMvkM5Nv+jJ7sCTUqcIMeCYjTmrHxIN6QTnWgifOsdv9lxZH7t0vzzW8CMdR0FWZZXOux5gtmdiRWpUvMNWBQI1qxRmili+4qxl3s463p5Z8i4uyaD+T5Inhg\/rDLDd0\/CGyf8PyRmaTaKHgiLpxx4xjy5Np3Y4D\/raMcBmbuZt1lhWMI130NnEcV1PcdLe\/XKO1DVbLy3mInv\/lT9JXlS8eqeBW147A7+PXspaqGCfWnenM88NePjLXXDCX5a+JbbDeJrjmhAkyjn9cLPTyNp6xvlkIFYg==",
"KeyInfo": {
"X509Data": {
"X509Certificate": "MIIHwTCCBamgAwIBAgINAN\/ChxxcMb4T40uEMjANBgkqhkiG9w0BAQsFADCBpzELMAkGA1UEBhMCQlIxEzARBgNVBAoMCklDUC1CcmFzaWwxDzANBgNVBAsMBkNTUEItMTE7MDkGA1UECwwyU2VydmljbyBGZWRlcmFsIGRlIFByb2Nlc3NhbWVudG8gZGUgRGFkb3MgLSBTRVJQUk8xNTAzBgNVBAMMLEF1dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBkbyBTRVJQUk8gRmluYWwgU1NMMB4XDTIxMDgxMTE4MTUyNloXDTIyMDgxMTE4MTUyNlowgeMxCzAJBgNVBAYTAkJSMRMwEQYDVQQKDApJQ1AtQnJhc2lsMRkwFwYDVQ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xhkWDqwJojAW\/YQQlwNeHSTkv2DYaFX60x5571t\/oVwAy+AR3Vq8g+sD57zZ7uwx9mzI8U\/V3cf1Ty2eXaOPaUl7s\/KZ6h+l3VjYl60s2sU8Khunt2X4ze04YSS4VPoigPhYTqdNwmfD16W"
}
}
}
}
}
}
}
}
}
}
}"

A partir desse retorno, eu pensei que tivesse que consultar o evento de forma isolada, na consulta do evento, e o resultado foi o seguinte:

{"ConsultaReciboEvento1000Response":{"ConsultaReciboEvento1000Result":{"Reinf":{"ideStatus":{"cdRetorno":"1","descRetorno":"Um ou mais eventos encontrados"},"retornoEventos":{"evento":{"iniValid":"2022-01"}}}}}}

Ou seja, nem o metodo de envio, nem o retorno da consulta, produziram o retorno que está especificado naquele XSD.

Grato