Desenvolvimento NFS-e
Desenvolvimento NFS-e
Desenvolvimento NFS-e
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Desenvolvimento NFS-e

Site destinado a desenvolvedores de softwares na integração com a NFS-e.
 
InícioInício  Últimas imagensÚltimas imagens  ProcurarProcurar  RegistrarRegistrar  Entrar  

 

 E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada

Ir para baixo 
2 participantes
AutorMensagem
sesiom




Mensagens : 5
Data de inscrição : 16/09/2015

E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada Empty
MensagemAssunto: E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada   E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada EmptyQui Out 15, 2015 5:21 pm

Pessoal,

Finalmente conseguimos gerar a nota fiscal para Santos pelo WB.
Agora estamos com dificuldade em identificar qual o problema com o cancelamento, que está retornando o mesmo erro E160.
Ao submetermos esse XML ao XSD retorna a mensagem:

The element 'CancelarNfseEnvio' in namespace 'http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd' has invalid child element 'Pedido' in namespace 'http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd'. List of possible elements expected: 'Pedido'.

Já testamos de diversas formas para tentar identificar qual o problema o elemento <Pedido> no XML sem sucesso.
Poderia nos indicar qual o problema desse XML ou nos encaminhar um modelo de cancelamento por favor ?
Segue em anexo um exemplo do XML de cancelamento.

Código:
<?xml version="1.0" encoding="UTF-8"?>
<CancelarNfseEnvio xmlns="http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd">
  <Pedido>
    <InfPedidoCancelamento Id="000002">
      <IdentificacaoNfse>
        <tipos:Numero>2</tipos:Numero>
        <tipos:Cnpj>92771575000550</tipos:Cnpj>
        <tipos:InscricaoMunicipal>1617609</tipos:InscricaoMunicipal>
        <tipos:CodigoMunicipio>3548500</tipos:CodigoMunicipio>
      </IdentificacaoNfse>
      <CodigoCancelamento>2</CodigoCancelamento>
    </InfPedidoCancelamento>
    <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/2000/09/xmldsig#rsa-sha1"/>
        <Reference URI="#000002">
          <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/2000/09/xmldsig#sha1"/>
          <DigestValue>utct7rVPxjAjipUpiExUqF1LB34=</DigestValue>
        </Reference>
      </SignedInfo>
      <SignatureValue>qoRJueDVCH78peb6FZw4e5PdWOW5NkKsG6wI2tbpRIrs7rrQNpbogFwlprG9nZbPbK4d/64OOLZjIap1MYsvgcJP1afUzRnwff2uepPIM/zAYx3DX4qEajvaEWNQ5vRrjDMpSwn/kyfL3s/YU+6yPtcGr4BYbnT/1H1/ZoufKbhCFwYD6sRULthizA0iSWjJgFMlN5dC7d0tKpuG9MnlEGLMRKsh1UeAv+BUPRW4zE6bnxUreQDmWFbuU35t6ol/KDBP0tY9QSQ3BhH5bD8wJiYCQWD827liX6CgFvcMUTlUEX0Dqr6MxFzzqz1iDLOb+zLZFWQ31RW+iEbNqoFKcw==</SignatureValue>
      <KeyInfo>
        <X509Data>
          <X509Certificate>MIIIYzCCBkugAwIBAgIQAgVh4QDv2nGKbBmuL74wRjANBgkqhkiG9w0BAQsFADB0MQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDEtMCsGA1UECxMkQ2VydGlzaWduIENlcnRpZmljYWRvcmEgRGlnaXRhbCBTLkEuMSEwHwYDVQQDExhBQyBDZXJ0aXNpZ24gTXVsdGlwbGEgRzUwHhcNMTUwMzMxMDAwMDAwWhcNMTYwMzI5MjM1OTU5WjCB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CaOrH1UhyMfskSZTFF88ybSZw8rAGnQ4HJD5Zgofa0RKvIkFU8UqIIiItcXPqqBcPBbOLHxv3s5kSEPihajDiAgfhQrPe4pmfJ450TJShPWGLi8/o70q2CwHcVDe9btMuB6BQbaZYSJP9CyulrV/gMF+MY5/hEd5q9mxaywPsrAHcDI9olIlyIsmNtm8uQopi/xE/T/KMLIhZTPQps21Dm8SJQnT6TK7j7Kzc93dlYGipZ8V4XGZZ1/R6ycPHodzd1ZtxdjGP7+0i7jNuxwmlZEW2UHHIbUJv7Fl7Nyk4Y11S3E0fUvdr6I8AXMubQYQp3a77IW5bbka98RIS/V75rcoFb1oQEJcoU9lWdvyZ9a5GolhtJvxY1oTTn0FZ7cSL4u+pXrL4Z8WeIbAVCFHrirRp/C0CNjh+MT1x+TyQ4q5gGJhwFoArLMqfkLMDUOOSzCntoVDInTiLcIJxLGMVmulUruaRKzMKG</X509Certificate>
        </X509Data>
      </KeyInfo>
    </Signature>
  </Pedido>
</CancelarNfseEnvio>
Ir para o topo Ir para baixo
Marcio Lima




Mensagens : 18
Data de inscrição : 13/11/2015
Localização : São Paulo

E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada Empty
MensagemAssunto: Re: E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada   E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada EmptySeg Nov 16, 2015 9:45 am

Olá, sesiom.
O que pode estar ocorrendo é que a tag Pedido contida no xml está sendo validada pelo schema tipos_v03.xsd.

Uso um plugin do Notepad++ que valida o xml de acordo com o schema.
Tomei a liberdade de modificar seu xml e coloca-lo abaixo.

<CancelarNfseEnvio xmlns="http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd">
 <Pedido xmlns="">
   <tipos:InfPedidoCancelamento Id="000002" >
     <tipos:IdentificacaoNfse>
       <tipos:Numero>2</tipos:Numero>
       <tipos:Cnpj>92771575000550</tipos:Cnpj>
       <tipos:InscricaoMunicipal>1617609</tipos:InscricaoMunicipal>
       <tipos:CodigoMunicipio>3548500</tipos:CodigoMunicipio>
     </tipos:IdentificacaoNfse>
     <tipos:CodigoCancelamento>2</tipos:CodigoCancelamento>
   </tipos:InfPedidoCancelamento>
   <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/2000/09/xmldsig#rsa-sha1"/>
       <Reference URI="#000002">
         <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/2000/09/xmldsig#sha1"/>
         <DigestValue>utct7rVPxjAjipUpiExUqF1LB34=</DigestValue>
       </Reference>
     </SignedInfo>
     <SignatureValue>qoRJueDVCH78peb6FZw4e5PdWOW5NkKsG6wI2tbpRIrs7rrQNpbogFwlprG9nZbPbK4d/64OOLZjIap1MYsvgcJP1afUzRnwff2uepPIM/zAYx3DX4qEajvaEWNQ5vRrjDMpSwn/kyfL3s/YU+6yPtcGr4BYbnT/1H1/ZoufKbhCFwYD6sRULthizA0iSWjJgFMlN5dC7d0tKpuG9MnlEGLMRKsh1UeAv+BUPRW4zE6bnxUreQDmWFbuU35t6ol/KDBP0tY9QSQ3BhH5bD8wJiYCQWD827liX6CgFvcMUTlUEX0Dqr6MxFzzqz1iDLOb+zLZFWQ31RW+iEbNqoFKcw==</SignatureValue>
     <KeyInfo>
       <X509Data>
         <X509Certificate>MIIIYzCCBkugAwIBAgIQAgVh4QDv2nGKbBmuL74wRjANBgkqhkiG9w0BAQsFADB0MQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDEtMCsGA1UECxMkQ2VydGlzaWduIENlcnRpZmljYWRvcmEgRGlnaXRhbCBTLkEuMSEwHw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Hd2ksYn4uyAzAjNrQFobtZ8GVQlHURop2KxZjKKWeqP+UNnjLOML2u2VBSRv4aw+xwv++eFOcwQNFd0DOSYgA3PJGnCaOrH1UhyMfskSZTFF88ybSZw8rAGnQ4HJD5Zgofa0RKvIkFU8UqIIiItcXPqqBcPBbOLHxv3s5kSEPihajDiAgfhQrPe4pmfJ450TJShPWGLi8/o70q2CwHcVDe9btMuB6BQbaZYSJP9CyulrV/gMF+MY5/hEd5q9mxaywPsrAHcDI9olIlyIsmNtm8uQopi/xE/T/KMLIhZTPQps21Dm8SJQnT6TK7j7Kzc93dlYGipZ8V4XGZZ1/R6ycPHodzd1ZtxdjGP7+0i7jNuxwmlZEW2UHHIbUJv7Fl7Nyk4Y11S3E0fUvdr6I8AXMubQYQp3a77IW5bbka98RIS/V75rcoFb1oQEJcoU9lWdvyZ9a5GolhtJvxY1oTTn0FZ7cSL4u+pXrL4Z8WeIbAVCFHrirRp/C0CNjh+MT1x+TyQ4q5gGJhwFoArLMqfkLMDUOOSzCntoVDInTiLcIJxLGMVmulUruaRKzMKG</X509Certificate>
       </X509Data>
     </KeyInfo>
   </Signature>
 </Pedido>
</CancelarNfseEnvio>

Espero que ajude.
Ir para o topo Ir para baixo
 
E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada
Ir para o topo 
Página 1 de 1
 Tópicos semelhantes
-
» Erro E160 Arquivo enviado fora da estrutura do arquivo de XML de entrada
» (RESOLVIDO)E160: “Arquivo enviado fora da estrutura do arquivo XML de entrada”.
» Erro : Arquivo enviado fora da estrutura do arquivo XMLde entrada
» E160 - Arquivo enviado fora da estrutura do arquivo XML de entrada.
» Erro E185 - Arquivo de cabeçalho enviado fora da estrutura do arquivo XML de entrada

Permissões neste sub-fórumNão podes responder a tópicos
Desenvolvimento NFS-e  :: Erros e Alertas-
Ir para: