PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → Ajuda XML NFe FlexDocs
Ajuda XML NFe FlexDocs
Iniciado por Mister ANDRE MARTINI, nov., 07 2019 9:30 PM - 1 resposta
Membro registado
203 mensagems
Popularité : +25 (25 votes)
Publicado em novembro, 07 2019 - 9:30 PM
Estou tendo o erro abaixo nos testes da NFe da flexdocs e não estou conseguindo encontrar o erro.

eu uso este comando para gerar o arquivo xml
fSaveText(sDiretorioNFe + sNomeArquivoXML,StringToUTF8(sNFe))


o retorno é que o xml está mal formatado, mas quando valido o xml no site da sefaz não tem erro


LOG DE RETORNO:
----------------------------------------------
1.Data do incidente: 07/11/2019 17:07:24:49
----------------------------------------------
2.Status de retorno da função:
----------------------------------------------
0-5503 - Erro: XML mal formado [Elemento raiz inexistente.]
----------------------------------------------
3.XML da NF-e:
----------------------------------------------
----------------------------------------------
4.Área de Cabeçalho:
----------------------------------------------
----------------------------------------------
5.Área de Dados:
----------------------------------------------
----------------------------------------------
6.Área de Retorno do WS:
----------------------------------------------
(Valida??o XML da NF de entrada)

--
André Martini
IS2 http://www.is2.inf.br/ - http://www.is2.com.br/
KW2MKT https://www.kw2mkt.com/
Blog http://is2sisinfo.blogspot.com/
*Websites Desenvolvidos
https://www.educacaocaninars.com.br/
http://www.qualosegredodogesso.com.br/localpages/
Membro registado
203 mensagems
Popularité : +25 (25 votes)
Publicado em novembro, 11 2019 - 8:45 PM
como fazer este código vb6 em windev?

intNumArea = FreeFile 'pega uma area livre
Open strDiretorioNFe & strNomeArquivoXML For Output As intNumArea
Print #intNumArea, UTF8_Encode(strNFe)
Close #intNumArea

--
André Martini
IS2 http://www.is2.inf.br/ - http://www.is2.com.br/
KW2MKT https://www.kw2mkt.com/
Blog http://is2sisinfo.blogspot.com/
*Websites Desenvolvidos
https://www.educacaocaninars.com.br/
http://www.qualosegredodogesso.com.br/localpages/