From 920b8d08931fc4b94d5d470f35d670087c5ff8ad Mon Sep 17 00:00:00 2001 From: Andreus Timm Date: Fri, 4 Sep 2015 13:51:03 -0300 Subject: [PATCH] =?UTF-8?q?Padroniza=C3=A7=C3=A3o=20dos=20Exemplos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exemplos/NFe/montaXmlWebServicesNFe.php | 520 ++++++++++++------------ exemplos/NFe/testaDanfeNFCe.php | 17 +- exemplos/NFe/testaImapNFePHP.php | 26 +- exemplos/NFe/testaManifDest.php | 38 +- exemplos/NFe/testaNFeAddProt.php | 15 +- exemplos/NFe/testaNFeCCe.php | 20 +- exemplos/NFe/testaNFeCancelEvent.php | 27 +- exemplos/NFe/testaNFeConsCad.php | 32 +- exemplos/NFe/testaNFeConvertTXT.php | 24 +- exemplos/NFe/testaNFeDANFE.php | 12 +- exemplos/NFe/testaNFeEnvio.php | 20 +- exemplos/NFe/testaNFeGetDFe.php | 12 +- exemplos/NFe/testaNFeGetList.php | 82 ++-- exemplos/NFe/testaNFeGetList2.php | 36 +- exemplos/NFe/testaNFeInutNF.php | 43 +- exemplos/NFe/testaNFePrintCCe.php | 15 +- exemplos/NFe/testaNFeRecibo.php | 20 +- exemplos/NFe/testaNFeStatus.php | 39 +- exemplos/NFe/testaNFeValidaXML.php | 16 +- exemplos/NFe/testaNFeValidade.php | 13 +- 20 files changed, 593 insertions(+), 434 deletions(-) diff --git a/exemplos/NFe/montaXmlWebServicesNFe.php b/exemplos/NFe/montaXmlWebServicesNFe.php index 708f917fc..1bef1f56e 100644 --- a/exemplos/NFe/montaXmlWebServicesNFe.php +++ b/exemplos/NFe/montaXmlWebServicesNFe.php @@ -1,314 +1,314 @@ 'AC','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'AC','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NFeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); - -$ws[]=array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3,10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); - -$ws[]=array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); - -$ws[]=array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'AN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaDest','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx','Metodo'=>'nfeConsultaNFDest'); -$ws[]=array('UF'=>'AN','Ambiente'=>'Homologacao','Servico'=>'NfeDownloadNF','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); -$ws[]=array('UF'=>'AN','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'AN','Ambiente'=>'Producao','Servico'=>'NfeConsultaDest','Versao'=>'3.10','URL'=>'https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx','Metodo'=>'nfeConsultaNFDest'); -$ws[]=array('UF'=>'AN','Ambiente'=>'Producao','Servico'=>'NfeDownloadNF','Versao'=>'3.10','URL'=>'https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); -$ws[]=array('UF'=>'AN','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); - -$ws[]=array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); - -$ws[]=array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); - - -$ws[]=array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); - -$ws[]=array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); - -$ws[]=array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); - - -$ws[]=array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); - - -$ws[]=array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'AC','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'AC','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NFeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); - -$ws[]=array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3,10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'AM','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'AN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaDest','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx','Metodo'=>'nfeConsultaNFDest'); +$ws[] = array('UF'=>'AN','Ambiente'=>'Homologacao','Servico'=>'NfeDownloadNF','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); +$ws[] = array('UF'=>'AN','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'AN','Ambiente'=>'Producao','Servico'=>'NfeConsultaDest','Versao'=>'3.10','URL'=>'https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx','Metodo'=>'nfeConsultaNFDest'); +$ws[] = array('UF'=>'AN','Ambiente'=>'Producao','Servico'=>'NfeDownloadNF','Versao'=>'3.10','URL'=>'https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); +$ws[] = array('UF'=>'AN','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); + +$ws[] = array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://hnfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); + +$ws[] = array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); + +$ws[] = array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); + + +$ws[] = array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'BA','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://nfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); + + +$ws[] = array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfeh.sefaz.ce.gov.br/nfe2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); + -$ws[]=array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'CE','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'2.00','URL'=>'https://nfe.sefaz.ce.gov.br/nfe2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeStatus2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homolog.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'GO','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hnfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'2.00','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/NfeStatus2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'MG','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'2.00','URL'=>'https://nfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'PB','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'PB','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homologacao.nfe.ms.gov.br/homologacao/services2/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'MS','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.fazenda.ms.gov.br/producao/services2/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeAutorizacao3.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'2.00','URL'=>'https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeConsulta3.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeInutilizacao3.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'MT','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'PB','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'PB','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3 .asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'PE','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeAutorizacao3.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe/NFeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe/NFeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeConsulta3.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe/NFeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe-evento/NFeRecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'RN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'RN','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://sef.sefaz.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaDest','Versao'=>'2.00','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/nfeConsultaDest/nfeConsultaDest.asmx','Metodo'=>'nfeConsultaNFDest'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeDownloadNF','Versao'=>'2.00','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/nfeDownloadNF/nfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeInutilizacao3.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://sef.sefaz.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeConsultaDest','Versao'=>'2.00','URL'=>'https://nfe.sefaz.rs.gov.br/ws/nfeConsultaDest/nfeConsultaDest.asmx','Metodo'=>'nfeConsultaNFDest'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeDownloadNF','Versao'=>'2.00','URL'=>'https://nfe.sefaz.rs.gov.br/ws/nfeDownloadNF/nfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeInutilizacao/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefaz.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SC','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'SC','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeInutilizacao2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3 .asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe/NFeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe/NFeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe/NFeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'PR','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'2.00','URL'=>'https://nfe2.fazenda.pr.gov.br/nfe-evento/NFeRecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'RN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'RN','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://sef.sefaz.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaDest','Versao'=>'2.00','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/nfeConsultaDest/nfeConsultaDest.asmx','Metodo'=>'nfeConsultaNFDest'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeDownloadNF','Versao'=>'2.00','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/nfeDownloadNF/nfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://www.scan.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homologacao.nfe.sefaz.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://sef.sefaz.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeConsultaDest','Versao'=>'2.00','URL'=>'https://nfe.sefaz.rs.gov.br/ws/nfeConsultaDest/nfeConsultaDest.asmx','Metodo'=>'nfeConsultaNFDest'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeDownloadNF','Versao'=>'2.00','URL'=>'https://nfe.sefaz.rs.gov.br/ws/nfeDownloadNF/nfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeInutilizacao/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefaz.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'RS','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefaz.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SC','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'SC','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeInutilizacao2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hom.nfe.fazenda.gov.br/SCAN/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://www.scan.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SCAN','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://www.scan.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeDownloadNF','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://homologacao.nfe.fazenda.sp.gov.br/ws/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeDownloadNF','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://www.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hom.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hom.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://www.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SP','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'3.10','URL'=>'https://nfe.fazenda.sp.gov.br/ws/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeDownloadNF','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://www.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hom.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeDownloadNF','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx','Metodo'=>'nfeDownloadNF'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://www.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SVAN','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://www.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://hom.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://homologacao.sef.sefaz.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://hom.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://www.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SVCAN','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://www.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); -$ws[]=array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); + +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); + +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SVCRS','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://homologacao.sef.sefaz.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); + +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); + +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Homologacao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx','Metodo'=>'nfeAutorizacaoLote'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeConsultaCadastro','Versao'=>'2.00','URL'=>'https://svp-ws.sefazvirtual.rs.gov.br/ws/CadConsultaCadastro/CadConsultaCadastro2.asmx','Metodo'=>'consultaCadastro2'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeConsultaProtocolo','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx','Metodo'=>'nfeConsultaNF2'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeInutilizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx','Metodo'=>'nfeInutilizacaoNF2'); + +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeRetAutorizacao','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx','Metodo'=>'nfeRetAutorizacaoLote'); + +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'NfeStatusServico','Versao'=>'3.10','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx','Metodo'=>'nfeStatusServicoNF2'); +$ws[] = array('UF'=>'SVRS','Ambiente'=>'Producao','Servico'=>'RecepcaoEvento','Versao'=>'1.00','URL'=>'https://nfe.sefazvirtual.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx','Metodo'=>'nfeRecepcaoEvento'); $dom = new DOMDocument('1.0', 'UTF-8'); $dom->formatOutput = true; @@ -316,45 +316,67 @@ $wServ = $dom->createElement("WS"); $wServ->setAttribute('xmlns:xsi', "http://www.w3.org/2001/XMLSchema-instance"); -$oldDigla = ''; +$oldDigla = ''; $oldAmbiente = ''; + foreach ($ws as $webserv) { - $sigla = $webserv['UF']; + + $sigla = $webserv['UF']; $ambiente = $webserv['Ambiente']; - $servico = $webserv['Servico']; - $versao = $webserv['Versao']; - $url = $webserv['URL']; - $metodo = $webserv['Metodo']; + $servico = $webserv['Servico']; + $versao = $webserv['Versao']; + $url = $webserv['URL']; + $metodo = $webserv['Metodo']; + if ($sigla != $oldSigla) { + $oldSigla = $sigla; + if (isset($elAmb)) { + $wsUF->appendChild($elAmb); $elAmb = null; + } + if (isset($wsUF)) { + $wServ->appendChild($wsUF); $wsUF = null; + } - $wsUF = $dom->createElement('UF'); - $elSigla= $dom->createElement('sigla', $sigla); + + $wsUF = $dom->createElement('UF'); + $elSigla = $dom->createElement('sigla', $sigla); + $wsUF->appendChild($elSigla); + } - + if ($ambiente != $oldAmbiente) { + $oldAmbiente = $ambiente; + if (isset($elAmb)) { + $wsUF->appendChild($elAmb); $elAmb = null; + } + $elAmb = $dom->createElement($ambiente); + } + $elServ = $dom->createElement($servico, $url); $elServ->setAttribute('method', $metodo); $elServ->setAttribute('version', $versao); $elAmb->appendChild($elServ); + } + $dom->appendChild($wServ); $xml = $dom->saveXML(); -$dom->save('../config/nfe_ws3.xml'); +$dom->save(dirname(__FILE__).'/../config/nfe_ws3.xml'); header('Content-type: text/xml; charset=UTF-8'); echo $xml; diff --git a/exemplos/NFe/testaDanfeNFCe.php b/exemplos/NFe/testaDanfeNFCe.php index 796e1186b..d3f258164 100644 --- a/exemplos/NFe/testaDanfeNFCe.php +++ b/exemplos/NFe/testaDanfeNFCe.php @@ -1,20 +1,25 @@ montaDANFE(false); - $teste = $danfe->printDANFE($saida, $id.'.pdf', 'I'); + $danfe = new DanfeNFCeNFePHP($docxml, dirname(__FILE__).'/../../images/logo.jpg', 0); + $id = $danfe->montaDANFE(false); + $teste = $danfe->printDANFE($saida, $id.'.pdf', 'I'); + } -exit(); diff --git a/exemplos/NFe/testaImapNFePHP.php b/exemplos/NFe/testaImapNFePHP.php index 5fe667ccf..7bf583994 100644 --- a/exemplos/NFe/testaImapNFePHP.php +++ b/exemplos/NFe/testaImapNFePHP.php @@ -1,10 +1,10 @@ setHost('imap.gmail.com'); $mbox->setPort('993'); @@ -21,26 +21,44 @@ $mbox->setImapAction('move'); if (!$mbox->imapConnect()) { + echo $mbox->getImapError().'
'; echo $mbox->getMbox(); exit(); + } + if ($mbox->imapGetXmlFiles()) { - echo 'Mensagens processadas
'; - $aMsgs = $mbox->getProcessedMsgs(); + + echo 'Mensagens processadas
'; + + $aMsgs = $mbox->getProcessedMsgs(); $iCount = 1; + foreach ($aMsgs as $msg) { + echo '['.$iCount.'] '.$msg['from'].''.$msg['subject'].''.$msg['date'].'
'; echo '..............'.$msg['action'].'('.$msg['actionmark'].') : Sucesso ['.$msg['success'].']
'; + if (is_array($msg['attachments'])) { + foreach ($msg['attachments'] as $att) { + echo '_____________________'.$att['attachname'] . ': download [' .$att['download'].']
'; + } + } + $iCount++; + } + } else { + echo 'Error'.$mbox->getImapError().'
'; + } + $mbox->imapDisconnect(); $mbox = null; diff --git a/exemplos/NFe/testaManifDest.php b/exemplos/NFe/testaManifDest.php index 073739263..57479ef35 100644 --- a/exemplos/NFe/testaManifDest.php +++ b/exemplos/NFe/testaManifDest.php @@ -1,43 +1,49 @@ '; +$tpAmb = '2';//usando produção +$chNFe = ''; /* $tpEvento = '210200';//Confirmacao da Operacao //confirma a operação e o recebimento da mercadoria (para as operações com circulação de mercadoria) //Após a Confirmação da Operação pelo destinatário, a empresa emitente fica automaticamente impedida de cancelar a NF-e - + $tpEvento = '210210'; //Ciencia da Operacao //encrenca !!! Não usar //O evento de “Ciência da Operação” é um evento opcional e pode ser evitado //Após um período determinado, todas as operações com “Ciência da Operação” deverão //obrigatoriamente ter a manifestação final do destinatário declarada em um dos eventos de //Confirmação da Operação, Desconhecimento ou Operação não Realizada - + $tpEvento = '210220'; //Desconhecimento da Operacao //Uma empresa pode ficar sabendo das operações destinadas a um determinado CNPJ //consultando o “Serviço de Consulta da Relação de Documentos Destinados” ao seu CNPJ. //O evento de “Desconhecimento da Operação” permite ao destinatário informar o seu //desconhecimento de uma determinada operação que conste nesta relação, por exemplo - -$tpEvento = '210240'; //Operacao nao Realizada + +$tpEvento = '210240'; //Operacao nao Realizada //não aceitação no recebimento que antes se fazia com apenas um carimbo na NF - */ +*/ $tpEvento = '210200'; -$resp = ''; -if (!$xml = $nfe->manifDest($chNFe,$tpEvento,'',$tpAmb,$modSOAP,$resp)){ +$resp = ''; + +if (!$xml = $nfe->manifDest($chNFe, $tpEvento, '', $tpAmb, $modSOAP, $resp)) { + header('Content-type: text/html; charset=UTF-8'); + echo "Houve erro !! $nfe->errMsg"; - echo '

';
+    echo '

';
     echo htmlspecialchars($nfe->soapDebug);
-    echo '

'; + echo '

'; + } else { + header('Content-type: text/xml; charset=UTF-8'); print_r($xml); - //echo '




'; + //echo '




'; //print_r($resp); -} -?> +} diff --git a/exemplos/NFe/testaNFeAddProt.php b/exemplos/NFe/testaNFeAddProt.php index 406e9748f..066450fb5 100644 --- a/exemplos/NFe/testaNFeAddProt.php +++ b/exemplos/NFe/testaNFeAddProt.php @@ -1,10 +1,13 @@ envDir.'35130471780456000160550010000000411000000410-nfe.xml'; + +require_once(dirname(__FILE__).'/../../libs/NFe/ToolsNFePHP.class.php'); + +$nfe = new ToolsNFePHP; +$nfefile = $nfe->envDir.'35130471780456000160550010000000411000000410-nfe.xml'; $protfile = $nfe->temDir.'35130471780456000160550010000000411000000410-prot.xml'; -if ($xml = $nfe->addProt($nfefile, $protfile)){ + +if ($xml = $nfe->addProt($nfefile, $protfile)) { + file_put_contents($nfe->aprDir.'35130471780456000160550010000000411000000410-procNfe.xml', $xml); -} -?> +} diff --git a/exemplos/NFe/testaNFeCCe.php b/exemplos/NFe/testaNFeCCe.php index 25dd51556..31d51ba67 100644 --- a/exemplos/NFe/testaNFeCCe.php +++ b/exemplos/NFe/testaNFeCCe.php @@ -3,20 +3,24 @@ * Exemplo de solicitação da situação da NFe atraves do numero do * recibo de uma nota enviada e recebida com sucesso pelo SEFAZ */ -require_once('../../libs/NFe/ToolsNFePHP.class.php'); -$nfe = new ToolsNFePHP; -$chave = ''; +require_once(dirname(__FILE__).'/../../libs/NFe/ToolsNFePHP.class.php'); + +$nfe = new ToolsNFePHP; +$chave = ''; $xCorrecao = 'NFe emitida em Ambiente de Homologação'; -$nSeq = 1; -$tpAmb = '2'; //homologação +$nSeq = 1; +$tpAmb = '2'; //homologação header('Content-type: text/xml; charset=UTF-8'); -if ($aResp = $nfe->envCCe($chave, $xCorrecao, $nSeq, $tpAmb, $retorno)){ + +if ($aResp = $nfe->envCCe($chave, $xCorrecao, $nSeq, $tpAmb, $retorno)) { + //houve retorno mostrar dados print_r($aResp); + } else { + //não houve retorno mostrar erro de comunicação echo "Houve erro !! $nfe->errMsg"; -} -?> +} diff --git a/exemplos/NFe/testaNFeCancelEvent.php b/exemplos/NFe/testaNFeCancelEvent.php index 9210e2820..eda5f63d9 100644 --- a/exemplos/NFe/testaNFeCancelEvent.php +++ b/exemplos/NFe/testaNFeCancelEvent.php @@ -6,24 +6,27 @@ * * Corrija os dados para o cancelamento antes de testar */ -require_once('../../libs/NFe/ToolsNFePHP.class.php'); +require_once(dirname(__FILE__).'/../../libs/NFe/ToolsNFePHP.class.php'); -$nfe = new ToolsNFePHP; -$chNFe = ""; -$nProt = ""; -$xJust = ""; -$tpAmb = '2'; +$nfe = new ToolsNFePHP; +$chNFe = ""; +$nProt = ""; +$xJust = ""; +$tpAmb = '2'; $modSOAP = '2'; -if ($resp = $nfe->cancelEvent($chNFe,$nProt,$xJust,$tpAmb,$modSOAP)){ +if ($resp = $nfe->cancelEvent($chNFe, $nProt, $xJust, $tpAmb, $modSOAP)) { + header('Content-type: text/xml; charset=UTF-8'); echo $resp; + } else { + header('Content-type: text/html; charset=UTF-8'); - echo '
'; - echo $nfe->errMsg.'
'; - echo '
';
+    echo '
'; + echo $nfe->errMsg.'
'; + echo '
';
     echo htmlspecialchars($nfe->soapDebug);
-    echo '

'; + echo '

'; + } -?> diff --git a/exemplos/NFe/testaNFeConsCad.php b/exemplos/NFe/testaNFeConsCad.php index 7ada91377..a74753a96 100644 --- a/exemplos/NFe/testaNFeConsCad.php +++ b/exemplos/NFe/testaNFeConsCad.php @@ -1,23 +1,27 @@ consultaCadastro($UF, $CNPJ, $IE, $CPF, $tpAmb, $modSOAP) ){ +if ($resposta = $nfe->consultaCadastro($UF, $CNPJ, $IE, $CPF, $tpAmb, $modSOAP)) { + print_r($resposta); - echo '
';
+    echo '
';
     echo htmlspecialchars($nfe->soapDebug);
-    echo '

'; + echo '

'; + } else { + echo "Houve erro !! $nfe->errMsg"; - echo '
';
+    echo '
';
     echo htmlspecialchars($nfe->soapDebug);
-    echo '

'; -} + echo '

'; -?> +} diff --git a/exemplos/NFe/testaNFeConvertTXT.php b/exemplos/NFe/testaNFeConvertTXT.php index 9637d42a6..b011ed55b 100644 --- a/exemplos/NFe/testaNFeConvertTXT.php +++ b/exemplos/NFe/testaNFeConvertTXT.php @@ -1,26 +1,30 @@ nfetxt2xml($arq); $xml = $xml[0]; - if ($xml != ''){ - echo '
';
+    if ($xml != '') {
+
+        echo '
';
         echo htmlspecialchars($xml);
-        echo '

'; - if (!file_put_contents('0008-nfe.xml',$xml)){ + echo '

'; + + if (!file_put_contents($dir.'0008-nfe.xml', $xml)) { + echo "ERRO na gravação"; + } - } -} + } -?> +} diff --git a/exemplos/NFe/testaNFeDANFE.php b/exemplos/NFe/testaNFeDANFE.php index 01b1fdbf4..9f16c7673 100644 --- a/exemplos/NFe/testaNFeDANFE.php +++ b/exemplos/NFe/testaNFeDANFE.php @@ -2,14 +2,16 @@ // Passe para este script o arquivo da NFe // Ex. testaDANFE.php?nfe=35100258716523000119550000000033453539003003-nfe.xml -require_once('../../libs/NFe/DanfeNFePHP.class.php'); +require_once(dirname(__FILE__).'/../../libs/NFe/DanfeNFePHP.class.php'); //$arq = $_GET['nfe']; -$arq = '../xml/35101158716523000119550010000000011003000000-nfe.xml'; +$arq = dirname(__FILE__).'/../xml/35101158716523000119550010000000011003000000-nfe.xml'; if (is_file($arq)) { + $docxml = file_get_contents($arq); - $danfe = new DanfeNFePHP($docxml, 'P', 'A4', '../../images/logo.jpg', 'I', ''); - $id = $danfe->montaDANFE(); - $teste = $danfe->printDANFE($id.'.pdf', 'I'); + $danfe = new DanfeNFePHP($docxml, 'P', 'A4', dirname(__FILE__).'/../../images/logo.jpg', 'I', ''); + $id = $danfe->montaDANFE(); + $teste = $danfe->printDANFE($id.'.pdf', 'I'); + } diff --git a/exemplos/NFe/testaNFeEnvio.php b/exemplos/NFe/testaNFeEnvio.php index 6dea745f0..d3f71ac6f 100644 --- a/exemplos/NFe/testaNFeEnvio.php +++ b/exemplos/NFe/testaNFeEnvio.php @@ -2,12 +2,13 @@ /* * Exemplo de envio de Nfe já assinada e validada */ -require_once('../../libs/NFe/ToolsNFePHP.class.php'); +require_once(dirname(__FILE__).'/../../libs/NFe/ToolsNFePHP.class.php'); + $nfe = new ToolsNFePHP; $modSOAP = '2'; //usando cURL //use isso, este é o modo manual voce tem mais controle sobre o que acontece -$filename = '../xml/35101158716523000119550010000000011003000000-nfe.xml'; +$filename = dirname(__FILE__).'/../xml/35101158716523000119550010000000011003000000-nfe.xml'; //obter um numero de lote $lote = substr(str_replace(',', '', number_format(microtime(true)*1000000, 0)), 0, 15); // montar o array com a NFe @@ -17,15 +18,24 @@ //enviar o lote if ($resp = $nfe->autoriza($sNFe, $lote, $aResp)) { + if ($aResp['bStat']) { + echo "Numero do Recibo : " . $aResp['nRec'] .", use este numero para obter o protocolo ou informações de erro no xml com testaRecibo.php."; + } else { + echo "Houve erro !! $nfe->errMsg"; + } + } else { + echo "houve erro !! $nfe->errMsg"; + } -echo '

DEBUG DA COMUNICAÇÕO SOAP



'; -echo '
';
+
+echo '

DEBUG DA COMUNICAÇÕO SOAP



'; +echo '
';
 echo htmlspecialchars($nfe->soapDebug);
-echo '

'; +echo '

'; diff --git a/exemplos/NFe/testaNFeGetDFe.php b/exemplos/NFe/testaNFeGetDFe.php index 46b36477f..2039f43bd 100644 --- a/exemplos/NFe/testaNFeGetDFe.php +++ b/exemplos/NFe/testaNFeGetDFe.php @@ -3,14 +3,14 @@ * não se esqueça de manter o config/nfe_ws3_mode55.xml atualizado */ -require_once('../../libs/NFe/ToolsNFePHP.class.php'); +require_once(dirname(__FILE__).'/../../libs/NFe/ToolsNFePHP.class.php'); $nfe = new ToolsNFePHP; -$fonte = 'AN'; -$tpAmb = '1'; -$ultNSU = 0; -$numNSU = 0; -$aResp = array(); +$fonte = 'AN'; +$tpAmb = '1'; +$ultNSU = 0; +$numNSU = 0; +$aResp = array(); $descompactar = false; $resposta = $nfe->getDistDFe($fonte, $tpAmb, $ultNSU, $numNSU, $aResp, $descompactar); diff --git a/exemplos/NFe/testaNFeGetList.php b/exemplos/NFe/testaNFeGetList.php index 4f18654a1..448e3432e 100644 --- a/exemplos/NFe/testaNFeGetList.php +++ b/exemplos/NFe/testaNFeGetList.php @@ -1,42 +1,61 @@ getListNFe($AN, $indNFe, $indEmi, $ultNSU, $tpAmb, $modSOAP, $retorno)){ + + if (!$xml = $nfe->getListNFe($AN, $indNFe, $indEmi, $ultNSU, $tpAmb, $modSOAP, $retorno)) { + echo "Houve erro !! $nfe->errMsg"; - echo '

';
+        echo '

';
         echo htmlspecialchars($nfe->soapDebug);
-        echo '

'; + echo '

'; + exit; + } else { - //carrega o retorno + + //carrega o retorno $indCont = $retorno['indCont']; - $ultNSU = ''; + $ultNSU = ''; + echo "$limite - Pesquisa [$indCont]
"; + if (!empty($retorno['NFe'])) { + foreach($retorno['NFe'] as $nfe) { + echo 'NFe : ' . $nfe['chNFe']; - echo '
'; + echo '
'; echo 'CNPJ: ' . $nfe['CNPJ'] . ' Emitente :' . $nfe['xNome']; - echo '
'; + echo '
'; echo 'Data da emissão : ' . $nfe['dEmi'] .' e Data Autorização : ' . $nfe['dhRecbto']; + if ($nfe['tpNF'] == 0) { + $tptxt = 'NF de Entrada'; + } else { - $tptxt = 'NF de Saída'; + + $tptxt = 'NF de Saída'; + } + echo ' ' . $tptxt; + switch ($nfe['cSitNFe']) { case 1: $sittxt='Uso autorizado no momento da consulta'; @@ -46,12 +65,15 @@ break; case 3: $sittxt='NF-e cancelada'; + } + echo '
Situação : ' . $sittxt; + switch ($nfe['cSitNFe']) { case 0: $mdtxt = 'Sem Manifestação do Destinatário'; - break; + break; case 1: $mdtxt ='Confirmada Operação'; break; @@ -66,25 +88,33 @@ break; default: $mdtxt = 'Sem Manifestação do Destinatário'; + } + echo '
Manifestação : '.$mdtxt; - echo "
"; + echo "
"; echo 'NSU : ' . $nfe['NSU']; - echo "

"; - } + echo "

"; + } + } else { + echo "Nada localizado"; - echo "

"; - } + echo "

"; + + } + } + flush(); - //atençao o tempo de execução desse loop pode exceder + //atençao o tempo de execução desse loop pode exceder //o tempo limite de processamento do php e o script pode ser interrompido //é recomendável que a pesquisa seja feita em etapas usando o numero do ultNSU - //registrado + //registrado $limite++; - //tem de haver um intervalo de tempo entre cada pesquisa caso contrario o + //tem de haver um intervalo de tempo entre cada pesquisa caso contrario o //webservice pode parar de responder, considerando ou um excesso de consultas //ou um ataque DoS sleep(5); + } diff --git a/exemplos/NFe/testaNFeGetList2.php b/exemplos/NFe/testaNFeGetList2.php index 42bcb1629..7d789cb84 100644 --- a/exemplos/NFe/testaNFeGetList2.php +++ b/exemplos/NFe/testaNFeGetList2.php @@ -7,31 +7,37 @@ //e portanto as NFe retornadas são apenas as recebidas após essa última consulta. // //É recomendável que o usuário não tenha acesso a essa chamada e que a mesma seja -//feita periódicamente (usando um agendador) por exemplo 3 ou 4 vezes ao dia no +//feita periódicamente (usando um agendador) por exemplo 3 ou 4 vezes ao dia no //máximo. error_reporting(E_ALL); ini_set('display_errors', 'On'); -require_once('../../libs/NFe/ToolsNFePHP.class.php'); -$nfe = new ToolsNFePHP('', 1, false); +require_once(dirname(__FILE__).'/../../libs/NFe/ToolsNFePHP.class.php'); + +$nfe = new ToolsNFePHP('', 1, false); $modSOAP = '2'; //usando cURL -$tpAmb = '1';//usando produção -$indNFe = '0'; -$indEmi = '0'; -$ultNSU = ''; -$ambNac = true; +$tpAmb = '1';//usando produção +$indNFe = '0'; +$indEmi = '0'; +$ultNSU = ''; +$ambNac = true; $retorno = array(); $indCont = 1; -$limite = 1; -$nxm = ''; +$limite = 1; +$nxm = ''; + while ($indCont != 0) { + if (!$xml = $nfe->getListNFe($ambNac, $indNFe, $indEmi, $ultNSU, $tpAmb, $retorno)) { + echo "Houve erro !! $nfe->errMsg"; - echo '

';
+        echo '

';
         echo htmlspecialchars($nfe->soapDebug);
-        echo '

'; + echo '

'; exit; + } + //carrega o retorno $indCont = $retorno['indCont']; $nxm .= ''; @@ -42,14 +48,20 @@ //o tempo limite de processamento do php e o script pode ser interrompido //é recomendável que a pesquisa seja feita em etapas usando o numero do ultNSU //registrado + if ($limite > 30) { + break; + } + //tem de haver um intervalo de tempo entre cada pesquisa caso contrario o //webservice pode parar de responder, considerando ou um excesso de consultas //ou um ataque DoS sleep(5); + } + $nxm .= '
'; header('Content-type: text/xml; charset=UTF-8'); echo $nxm; diff --git a/exemplos/NFe/testaNFeInutNF.php b/exemplos/NFe/testaNFeInutNF.php index 66b8a5fe9..8785da0ed 100644 --- a/exemplos/NFe/testaNFeInutNF.php +++ b/exemplos/NFe/testaNFeInutNF.php @@ -1,41 +1,44 @@ inutNF($nAno, $nSerie, $nIni, $nFin, $xJust, $tpAmb, $modSOAP)) { + //houve retorno mostrar dados - echo '
'; - echo '
';
+    echo '
'; + echo '
';
     echo htmlspecialchars($nfe->soapDebug);
-    echo '
'; - echo '
'; + echo '
'; + echo '
'; echo 'Retorno da Solicitação de Inutilização'; - echo '
'; - echo '
';
+    echo '
'; + echo '
';
     echo htmlspecialchars($xml);
-    echo '
'; + echo '
'; + } else { + //não houve retorno mostrar erro de comunicação echo "Houve erro na comunicação !! $nfe->errMsg"; - echo '
'; - echo '
';
+    echo '
'; + echo '
';
     echo htmlspecialchars($nfe->soapDebug);
-    echo '
'; - echo '
'; + echo '
'; + echo '
'; + } - \ No newline at end of file diff --git a/exemplos/NFe/testaNFePrintCCe.php b/exemplos/NFe/testaNFePrintCCe.php index 3b99fba27..00e24fa39 100644 --- a/exemplos/NFe/testaNFePrintCCe.php +++ b/exemplos/NFe/testaNFePrintCCe.php @@ -1,10 +1,13 @@ 'HOTEL COPACABANA','logradouro' => 'AV. ATLANTICA','numero' => '1702','complemento' => '','bairro' => 'COPACABANA','CEP' => '22021001','municipio' => 'RIO DE JANEIRO','UF'=>'RJ','telefone'=>'2100000000','email'=>'copa@copapalace.com.br'); -if ( is_file($arq) ){ - $cce = new DacceNFePHP($arq, 'P', 'A4','../images/logo.jpg','I',$aEnd,'','Times',1); - $teste = $cce->printDACCE('teste.pdf','I'); + +if (is_file($arq)) { + + $cce = new DacceNFePHP($arq, 'P', 'A4', dirname(__FILE__).'/../../images/logo.jpg', 'I', $aEnd, '', 'Times', 1); + $teste = $cce->printDACCE('teste.pdf', 'I'); + } -?> diff --git a/exemplos/NFe/testaNFeRecibo.php b/exemplos/NFe/testaNFeRecibo.php index 585d7a93b..e51aff206 100644 --- a/exemplos/NFe/testaNFeRecibo.php +++ b/exemplos/NFe/testaNFeRecibo.php @@ -3,20 +3,24 @@ * Exemplo de solicitação da situação da NFe atraves do numero do * recibo de uma nota enviada e recebida com sucesso pelo SEFAZ */ -require_once('../../libs/NFe/ToolsNFePHP.class.php'); -$nfe = new ToolsNFePHP; +require_once(dirname(__FILE__).'/../../libs/NFe/ToolsNFePHP.class.php'); + +$nfe = new ToolsNFePHP; $modSOAP = '2'; //usando cURL -$recibo = ''; //este é o numero do seu recibo mude antes de executar este script -$chave = '41140806161494000172550010000000221324615473'; -$tpAmb = '2'; //homologação +$recibo = ''; //este é o numero do seu recibo mude antes de executar este script +$chave = '41140806161494000172550010000000221324615473'; +$tpAmb = '2'; //homologação header('Content-type: text/xml; charset=UTF-8'); -if ($aResp = $nfe->getProtocol($recibo, $chave, $tpAmb, $retorno)){ + +if ($aResp = $nfe->getProtocol($recibo, $chave, $tpAmb, $retorno)) { + //houve retorno mostrar dados print_r($aResp); + } else { + //não houve retorno mostrar erro de comunicação echo "Houve erro !! $nfe->errMsg"; -} -?> +} diff --git a/exemplos/NFe/testaNFeStatus.php b/exemplos/NFe/testaNFeStatus.php index dfd63ac1d..0fdb8e638 100644 --- a/exemplos/NFe/testaNFeStatus.php +++ b/exemplos/NFe/testaNFeStatus.php @@ -1,32 +1,45 @@

'; - echo "$UF [ $sAmb ] ==> $UF
"; + + echo '


'; + echo "$UF [ $sAmb ] ==> $UF
"; + $resp = $nfe->statusServico($UF, $tpAmb, $retorno); + echo print_r($retorno); - echo '
'; - echo $nfe->errMsg.'
'; - echo '
';
+    echo '
'; + echo $nfe->errMsg.'
'; + echo '
';
     echo htmlspecialchars($nfe->soapDebug);
-    echo '

'; - echo $UF . '[' . $sAmb . '] - ' . $retorno['xMotivo'] . '



'; + echo '

'; + echo $UF . '[' . $sAmb . '] - ' . $retorno['xMotivo'] . '



'; + flush(); + } /* @@ -60,4 +73,4 @@ echo '
'; echo $UF . '[' . $sAmb . '] - ' . $retorno['xMotivo'] . '



'; flush(); -*/ \ No newline at end of file +*/ diff --git a/exemplos/NFe/testaNFeValidaXML.php b/exemplos/NFe/testaNFeValidaXML.php index e247af02b..4dcbb4d11 100644 --- a/exemplos/NFe/testaNFeValidaXML.php +++ b/exemplos/NFe/testaNFeValidaXML.php @@ -1,7 +1,8 @@ validXML($docxml, $xsdFile, $aErro)) { +if (!$nfe->validXML($docxml, $xsdFile, $aErro)) { + echo 'Estrutura do XML da NFe contêm erros ---
'; + foreach ($aErro as $er) { + echo $er .'
'; + } + } else { + echo 'Estrutura do XML da NFe foi VALIDADO!'; + } diff --git a/exemplos/NFe/testaNFeValidade.php b/exemplos/NFe/testaNFeValidade.php index b9fda0087..5b2942139 100644 --- a/exemplos/NFe/testaNFeValidade.php +++ b/exemplos/NFe/testaNFeValidade.php @@ -6,13 +6,18 @@ * através de uma consulta ao SEFAZ do estado do emissor */ header('Content-type: text/html; charset=UTF-8'); -require_once('../../libs/NFe/ToolsNFePHP.class.php'); +require_once(dirname(__FILE__).'/../../libs/NFe/ToolsNFePHP.class.php'); + $nfe = new ToolsNFePHP; //path para o arquivo da NFe recebida de terceiros que se quer verificar a validade -$fileNFe = "../xml/35101158716523000119550010000000011003000000-nfe.xml"; -if( !$nfe->verifyNFe($fileNFe) ){ +$fileNFe = dirname(__FILE__)."/../xml/35101158716523000119550010000000011003000000-nfe.xml"; + +if (!$nfe->verifyNFe($fileNFe)) { + echo $nfe->errMsg; + } else { + echo "NFe APROVADA e VÁLIDA"; + } -?>