how to sign XML string correctly #511
Replies: 3 comments
-
It seems like you're asking for help, not looking for an enhancement. I can move this to a discussion if you just need help. |
Beta Was this translation helpful? Give feedback.
-
yes, i'm labelled this issue wrong, if you can help, I would appreciate it when i'm assign my xml with java and get success, but i would like to do this work in node |
Beta Was this translation helpful? Give feedback.
-
@davi-canuto Your example code is "useless" from "puzzle solving" point of view without example input (or without prior knowledge of NFe ... which is behind language wall) and example output.
So you have some test input which you could attach to your question and output of that exact input from your nodejs (which does not validate against some reference implementation) and from your java implementation? Why didn't you/could you share those 3 files? FWIW, I see that you have some nfe generator https://github.com/davi-canuto/nfe-async/blob/33abd695379e9f3f348944cce418a1b6b9fa64ea/src/nfe/helpers/generateNFe.ts but at least I am not interest enought of this puzzle to start to build documents which shows issue from "atoms". Did you search any previous issues related systems used at south america (in this case NFe): which provides hit like: #113 Unrelated sidenote: code you provided at description of #510 uses regex to interpret xml. Using regex to interpret xml/xhtml/html is considered bad ( https://stackoverflow.com/a/1732454 ). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe...
i have this code for sign my XML before send it inside my soap envelope, but ever return for me "Signature differs from calculated".
context: i wanna connect with sefaz to create for a homologation NF-e https://www.nfe.fazenda.gov.br/portal/listaConteudo.aspx?tipoConteudo=ndIjl+iEFdE=
any problems visible with my signature?
Describe teh solution you'd like...
i want to sign my xml correctly
Describe the alternatives you've considered...
create another microservice in another language to sign correctly my xml before send to the consumer
"xml-crypto": "^2.1.2",
Beta Was this translation helpful? Give feedback.
All reactions