on 05-10-2011 3:49 PM
Bom dia
Estou validando um arquivo xml no site do sefaz do rs e esta me retornando a seguinte mensagem, alguem ja viu esta mensagem?
Resultado da Validação do Schema e Conferência da Assinatura:
PARSER XML: OK
TIPO DE MENSAGEM: NF-e
SCHEMA: - The value of the 'Algorithm' attribute does not equal its fixed value.
TAG: Algorithm
- The 'Algorithm' attribute is invalid - The value 'http://www.w3.org/2000/09/xmldsig#envelopedsignature' is invalid according to its datatype 'http://www.w3.org/2000/09/xmldsig#:TTransformURI' - The Enumeration constraint failed.
TAG: Algorithm
- The 'Algorithm' attribute is invalid - The value 'http://www.w3.org/TR/2001/RECxmlc14n20010315' is invalid according to its datatype 'http://www.w3.org/2000/09/xmldsig#:TTransformURI' - The Enumeration constraint failed.
TAG: Algorithm
grato,
Angelo,
esse XML é gerado pelo GRC?
Me parece algum problema ao copiar o conteúdo da NF-e no validador, ele comeu os hífens.
Os valores corretos do atributo @Algorithm da tag são:
http://www.w3.org/2000/09/xmldsig#enveloped-signature
http://www.w3.org/TR/2001/REC-xml-c14n-20010315
Abs,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Olha, resolveu sim o problema, muito obrigado. mais agora ta aparecendo a seguinte mensagem.
Resultado da Validação do Schema e Conferência da Assinatura:
PARSER XML: OK
TIPO DE MENSAGEM: NF-e
SCHEMA: OK
ASSINATURA XML: Erro na validação da assinatura: SignatureDescription could not be created for the signature algorithm supplied.
Me parece que é problema com o atributo @Algorithm da tag , cujo valor tem que ser
http://www.w3.org/2000/09/xmldsig#rsa-sha1
Mas vc está corrigindo na mão a assinatura, colocando os hífens, é isso?
Se for, muito provavelmente sua assinatura vai falhar anyway.
Como falei, tente pegar o XML novamente do servidor, abrir em um editor de texto que não codifique/decodifique os dados (e.g. wordpad) e cole no validador.
Abs,
Henrique.
vc esta usando o GRC ou uma outra solucao para o envio das NFes? Aparentemente esta com cara de caca da Assinatura digital que esta alterando o URI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.