Clipper On Line • Ver Tópico - Consulta cadastro

Consulta cadastro

Projeto hbNFe (Nota Fiscal Eletronica/Danfe) para [x]Harbour

Moderador: Moderadores

 

Consulta cadastro

Mensagempor JoséQuintas » 28 Fev 2016 14:34

Importante: certificado de SP, mesmo CNPJ em todas, é só pra testar comunicação mesmo
Homologação

----------
UF:AC
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consu
lta nao cadastrado como contribuinte na UF</xMotivo><UF>AC</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T12:20:46</dhCons><cUF>
----------
UF:AL
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF d
a consulta difere da UF do Web Service</xMotivo><UF>AL</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:22:15</dhCons><cUF>27</
cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:AM
<soapenv:Fault xmlns:axis2ns772="http://www.w3.org/2003/05/soap-envelope"><soapenv:Code><soapenv:Value>axis2ns772:Client</soapenv:V
alue></soapenv:Code><soapenv:Reason><soapenv:Text xml:lang="en-US">The service cannot be found for the endpoint reference (EPR) htt
ps://homnfe.sefaz.am.gov.br:443/service ... acadastro2</soapenv:Text></soapenv:Reason><soapenv:Detail><Exception>o
rg.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) https://homnfe.sefaz.am.gov.br:443/services
2/services/cadconsultacadastro2??at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:65)??at org.apache
.axis2.engine.Phase.invoke(Phase.java:334)??at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)??at org.apache.axis2.
engine.AxisEngine.receive(AxisEngine.java:160)??at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTr
ansportUtils.java:167)??at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)??at javax.servlet.http.HttpServ
let.service(HttpServlet.java:707)??at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)??at weblogic.servlet.internal.St
ubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)??at weblogic.servlet.internal.StubSecurityHelper$ServletServ
iceAction.run(StubSecurityHelper.java:260)??at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:1
37)??at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)??at weblogic.servlet.internal.ServletStubImpl.e
xecute(ServletStubImpl.java:247)??at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletCo
ntext.java:3650)??at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3620)??at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)??at weblogic.security.service.SecurityMana
ger.runAsForUserCode(SecurityManager.java:196)??at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvid
er.java:203)??at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)??at weblogic.servlet.internal.WebAppServl
etContext.doSecuredExecute(WebAppServletContext.java:2423)??at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebApp
ServletContext.java:2280)??at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2258)??at weblogic.s
ervlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1626)??at weblogic.servlet.internal.ServletRequestImpl.run(S
ervletRequestImpl.java:1586)??at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProv
iderImpl.java:270)??at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)??at
weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)??at weblogic.work.LivePart
itionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)??at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUt
ility.java:41)??at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)??at weblogic.wor
k.ExecuteThread.execute(ExecuteThread.java:397)??at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)?</Exception></soapenv:D
etail></soapenv:Fault>
----------
UF:BA
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns:xsi="http://www.w3.
org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00">
<infCons><verAplic>4.00</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consulta nao cadastrado como contribuinte na UF</xMo
tivo><UF>BA</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:23:13</dhCons><cUF>29</cUF></infCons></retConsCad></consultaCadast
ro2Result>
----------
UF:AP
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF d
a consulta difere da UF do Web Service</xMotivo><UF>AP</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:23:31</dhCons><cUF>16</
cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:CE
<cadConsultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns="http://www.port
alfiscal.inf.br/nfe" versao="2.00"><infCons><verAplic>CE_NFe_V3.10.0.30</verAplic><cStat>257</cStat><xMotivo>Rejeicao: Solicitante
nao habilitado para emissao da NF-e</xMotivo><UF>CE</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:24:29</dhCons><cUF>23</cUF
></infCons></retConsCad></cadConsultaCadastro2Result>
----------
UF:DF
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF d
a consulta difere da UF do Web Service</xMotivo><UF>DF</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:24:56</dhCons><cUF>53</
cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:ES
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00" xmlns="http
://www.portalfiscal.inf.br/nfe"><infCons><cStat>264</cStat><xMotivo>Rejeicao: Contribuinte não encontrado na UF</xMotivo></infCons
></retConsCad></consultaCadastro2Result>
----------
UF:GO
Erro SOAP: XML retorno não está no padrão <env:Envelope xmlns:env='http://www.w3.org/2003/05/soap-envelope'><env:Header></env:Heade
r><env:Body><consultaCadastro2Result xmlns='http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2'><retConsCad versao='2.00'
xmlns='http://www.portalfiscal.inf.br/nfe'><infCons><verAplic>GO3.0</verAplic><cStat>259</cStat><xMotivo>Rejeição: CNPJ da consu
lta não cadastrado como contribuinte na UF</xMotivo><UF>GO</UF><CNPJ>68331891000100</CNPJ><dhCons>2016-02-28T14:26:22</dhCons><cUF
>52</cUF></infCons></retConsCad></consultaCadastro2Result></env:Body></env:Envelope>
----------
UF:MA
Erro SOAP: Não há endereço de webservice
----------
UF:MG
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns="http://www.portalf
iscal.inf.br/nfe" versao="2.00">? <infCons>? <verAplic>13_3_13</verAplic>? <cStat>259</cStat>? <xMotivo>Rejeicao: CNPJ da
consulta nao cadastrado como contribuinte na UF</xMotivo>? <UF>MG</UF>? <CNPJ>66907346000186</CNPJ>? <dhCons>2016-02-28T1
4:26:49</dhCons>? <cUF>31</cUF>? </infCons>?</retConsCad></consultaCadastro2Result>
----------
UF:MS
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns="http://www.portalf
iscal.inf.br/nfe" versao="2.00"><infCons><verAplic>MS.SPRINGS-20151001</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consu
lta nao cadastrado como contribuinte na UF</xMotivo><UF>MS</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T13:27:12</dhCons><cUF>
50</cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:MT
Erro SOAP: Não há endereço de webservice
UF:PA
Erro SOAP: Não há endereço de webservice
----------
UF:PB
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consu
lta nao cadastrado como contribuinte na UF</xMotivo><UF>PB</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:27:39</dhCons><cUF>
25</cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:PE
Erro SOAP: Não há endereço de webservice
----------
UF:PI
Erro SOAP: Não há endereço de webservice
----------
UF:PR
Erro SOAP: XML retorno não está no padrão <env:Envelope xmlns:env='http://www.w3.org/2003/05/soap-envelope'><env:Header xmlns:env='
http://www.w3.org/2003/05/soap-envelope'><nfeCabecMsg xmlns='http://www.portalfiscal.inf.br/nfe'><cUF>41</cUF><versaoDados>2.00</ve
rsaoDados></nfeCabecMsg></env:Header><env:Body xmlns:env='http://www.w3.org/2003/05/soap-envelope'><consultaCadastro2Result xmlns='
http://www.portalfiscal.inf.br/nfe/wsdl ... Cadastro2'><retConsCad versao='2.00' xmlns='http://www.portalfiscal.inf.br/nfe'>
<infCons><verAplic>PR-v3_5_2</verAplic><cStat>259</cStat><xMotivo>CNPJ da consulta nao cadastrado como contribuinte na UF. CNPJ: 66
907346000186</xMotivo><UF>PR</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:28:49.297-03:00</dhCons><cUF>41</cUF></infCons></
retConsCad></consultaCadastro2Result></env:Body></env:Envelope>
----------
UF:RJ
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF d
a consulta difere da UF do Web Service</xMotivo><UF>RJ</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:28:59</dhCons><cUF>33</
cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:RN
<soap:Fault><soap:Code><soap:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">System.Web.Services.Pr
otocols.SoapException: Unable to handle request without a valid action parameter. Please supply a valid soap action.?? at System.
Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()?? at System.Web.Services.Protocols.SoapServerProtocol.RouteReque
st(SoapServerMessage message)?? at System.Web.Services.Protocols.SoapServerProtocol.Initialize()?? at System.Web.Services.Proto
cols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)?? at System.Web.Servic
es.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp;
abortProcessing)</soap:Text></soap:Reason><soap:Detail /></soap:Fault>
----------
UF:RO
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="ht
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF
a consulta difere da UF do Web Service</xMotivo><UF>RO</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T13:29:48</dhCons><cUF>11<
cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:RR
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF d
a consulta difere da UF do Web Service</xMotivo><UF>RR</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T13:30:07</dhCons><cUF>14</
cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:RS
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00" xmlns="http
://www.portalfiscal.inf.br/nfe"><infCons><verAplic>RSb20160107111410</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consult
a nao cadastrado como contribuinte na UF</xMotivo><UF>RS</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:30:25</dhCons><cUF>43
</cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:SC
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consu
lta nao cadastrado como contribuinte na UF</xMotivo><UF>SC</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:30:40</dhCons><cUF>
42</cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:SE
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF d
a consulta difere da UF do Web Service</xMotivo><UF>SE</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:30:44</dhCons><cUF>28</
cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:SP
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00" xmlns="http
://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SP_NFE_PL_008h2</verAplic><cStat>111</cStat><xMotivo>Consulta cadastro com uma o
corrência</xMotivo><UF>SP</UF><CNPJ>OMITIDO</CNPJ><dhCons>2016-02-28T14:31:45-03:00</dhCons><cUF>35</cUF><infCad><IE>OMITIDO</IE><CNPJ>OMITIDO</CNPJ><UF>SP</UF><cSit>1</cSit><indCredNFe>1</indCredNFe><indCredCTe>4</indCredCTe><xNome>OMITIDO</xNome><xRegApur>NORMAL - REGIME PERIÓDICO DE APURAÇÃO</xRegApur><CNAE>4681802</CNAE><dIn
iAtiv>1991-11-05</dIniAtiv><dUltSit>1991-11-05</dUltSit><ender><xLgr>OMITIDO</xLgr><nro>OMITIDO</nro><xBairro>OMITIDO</
xBairro><cMun>3550308</cMun><xMun>SAO PAULO</xMun><CEP>OMITIDO</CEP></ender></infCad></infCons></retConsCad></consultaCadastro2Res
ult>
----------
UF:TO
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF d
a consulta difere da UF do Web Service</xMotivo><UF>TO</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:33:28</dhCons><cUF>17</
cUF></infCons></retConsCad></consultaCadastro2Result>
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 28 Fev 2016 17:50

Lembrando:
A Sefaz tem controle de abuso.
Lógico, é cada um controlar isso.
Exemplo: consulto todas as UFs com pausa, uma única vez.
É aproveitar bem a informação disso, e ir eliminando o que já deu certo.
Como leva tempo pra confirmar o que aconteceu com cada uma, isso já dá um intervalo grande até a próxima consulta.

Omiti informações da consulta válida, por motivos óbvios.

Bom... nessas consultas tem um retorno em comum:

<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00 " xmlns="htt
p://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SVRS20150521104211</verAplic><cStat>265</cStat><xMotivo>Rejeicao: Sigla da UF d
a consulta difere da UF do Web Service</xMotivo><


Podemos ver aí SVRS, significa que está sendo usado o webservice virtual do Rio Grande do Sul.
Apesar da UF usar o servidor virtual do RS, ele não serve pra consultar cadastro dessa UF.
Se ela não tem servidor próprio, então não existe consulta cadastro nessa UF.
De qualquer forma, depende de verificação.

Como eu disse no começo, é mais pra testar o webservice.
Se tem resposta, é sinal de que chegou até o webservice definido.
Se a UF deixa ou não consultar de SP, isso no momento não importa, já que precisaria de um CNPJ daquela UF pra ter um retorno válido.
É só um teste básico mesmo.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 28 Fev 2016 17:51

produção

----------
UF:AC
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:AL
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:AM
<soapenv:Fault xmlns:axis2ns1793="http://www.w3.org/2003/05/soap-envelope"><soapenv:Code><soapenv:Value>axis2ns1793:Client</soapenv
:Value></soapenv:Code><soapenv:Reason><soapenv:Text xml:lang="en-US">The service cannot be found for the endpoint reference (EPR) h
ttps://nfe.sefaz.am.gov.br/services2/se ... acadastro2</soapenv:Text></soapenv:Reason><soapenv:Detail><Exception>org.ap
ache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) https://nfe.sefaz.am.gov.br/services2/services/c
adconsultacadastro2??at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:65)??at org.apache.axis2.engin
e.Phase.invoke(Phase.java:334)??at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)??at org.apache.axis2.engine.AxisE
ngine.receive(AxisEngine.java:160)??at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils
.java:167)??at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)??at javax.servlet.http.HttpServlet.service(
HttpServlet.java:710)??at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)??at org.apache.catalina.core.ApplicationFilt
erChain.internalDoFilter(ApplicationFilterChain.java:290)??at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)??at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)??at org.apache.catalina
.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)??at org.apache.catalina.core.ApplicationFilterChain.
doFilter(ApplicationFilterChain.java:206)??at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)??
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)??at org.jboss.web.tomcat.security.SecurityAs
sociationValve.invoke(SecurityAssociationValve.java:182)??at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve
.java:84)??at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)??at org.apache.catalina.valves.ErrorRep
ortValve.invoke(ErrorReportValve.java:102)??at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.
java:157)??at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)??at org.apache.catalina.core.StandardEngine
Valve.invoke(StandardEngineValve.java:109)??at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)??at org.
apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)??at org.apache.coyote.http11.Http11Protocol$Http11Connection
Handler.process(Http11Protocol.java:583)??at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)??at java.lang.
Thread.run(Thread.java:619)?</Exception></soapenv:Detail></soapenv:Fault>
----------
UF:BA
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns:xsi="http://www.w3.
org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00">
<infCons><verAplic>4.00</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consulta nao cadastrado como contribuinte na UF</xMo
tivo><UF>BA</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T15:28:08</dhCons><cUF>29</cUF></infCons></retConsCad></consultaCadast
ro2Result>
----------
UF:AP
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:CE
<cadConsultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns="http://www.port
alfiscal.inf.br/nfe" versao="2.00"><infCons><verAplic>CE_NFe_V3.10.0.30</verAplic><cStat>257</cStat><xMotivo>Rejeicao: Solicitante
nao habilitado para emissao da NF-e</xMotivo><UF>CE</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T15:29:21</dhCons><cUF>23</cUF
></infCons></retConsCad></cadConsultaCadastro2Result>
----------
UF:DF
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:ES
Erro: Na comunicação SOAP
----------
UF:GO
Erro SOAP: XML retorno não está no padrão <env:Envelope xmlns:env='http://www.w3.org/2003/05/soap-envelope'><env:Header></env:Heade
r><env:Body><consultaCadastro2Result xmlns='http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2'><retConsCad versao='2.00'
xmlns='http://www.portalfiscal.inf.br/nfe'><infCons><verAplic>GO3.0</verAplic><cStat>259</cStat><xMotivo>Rejeição: CNPJ da consu
lta não cadastrado como contribuinte na UF</xMotivo><UF>GO</UF><CNPJ>68331891000100</CNPJ><dhCons>2016-02-28T15:30:19</dhCons><cUF
>52</cUF></infCons></retConsCad></consultaCadastro2Result></env:Body></env:Envelope>
----------
UF:MA
Erro SOAP: XML retorno não está no padrão <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap
-envelope"><S:Body><S:Fault xmlns:ns4="http://schemas.xmlsoap.org/soap/envelope/"><S:Code><S:Value>S:Receiver</S:Value></S:Code><S:
Reason><S:Text xml:lang="en">org.apache.xerces.dom.ElementNSImpl cannot be cast to java.lang.String</S:Text></S:Reason></S:Fault></
S:Body></S:Envelope>
----------
UF:MG
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns="http://www.portalf
iscal.inf.br/nfe" versao="2.00">? <infCons>? <verAplic>13_3_12</verAplic>? <cStat>259</cStat>? <xMotivo>Rejeicao: CNPJ da
consulta nao cadastrado como contribuinte na UF</xMotivo>? <UF>MG</UF>? <CNPJ>66907346000186</CNPJ>? <dhCons>2016-02-28T1
5:31:15</dhCons>? <cUF>31</cUF>? </infCons>?</retConsCad></consultaCadastro2Result>
----------
UF:MS
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns="http://www.portalf
iscal.inf.br/nfe" versao="2.00"><infCons><verAplic>MS201503300900</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consulta n
ao cadastrado como contribuinte na UF</xMotivo><UF>MS</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:31:17</dhCons><cUF>50</c
UF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:MT
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad xmlns="http://www.portalf
iscal.inf.br/nfe" versao="2.00"><infCons><verAplic>3.10</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consulta nao cadastr
ado como contribuinte na UF</xMotivo><UF>MT</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T14:31:20</dhCons><cUF>51</cUF></infCo
ns></retConsCad></consultaCadastro2Result>
----------
UF:PA
Erro SOAP: Não há endereço de webservice
----------
UF:PB
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:PE
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00" xmlns="http
://www.portalfiscal.inf.br/nfe">?<infCons>?<verAplic>NFEPE_P_15.00.18.094</verAplic>?<cStat>203</cStat>?<xMotivo>Rejei&amp;#231;&am
p;#227;o: Emissor n&amp;#227;o habilitado para emiss&amp;#227;o da NF-e</xMotivo>?<UF>PE</UF>?<CNPJ>66907346000186</CNPJ><dhCons>20
16-02-28T15:32:17</dhCons>?<cUF>26</cUF>?</infCons>?</retConsCad></consultaCadastro2Result>
----------
UF:PI
Erro SOAP: Não há endereço de webservice
----------
UF:PR
Erro: Na comunicação SOAP
----------
UF:RJ
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:RN
<soap:Fault><soap:Code><soap:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Unable to handle reque
st without a valid action parameter. Please supply a valid soap action.</soap:Text></soap:Reason><soap:Detail /></soap:Fault>
----------
UF:RO
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:RR
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:RS
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00" xmlns="http
://www.portalfiscal.inf.br/nfe"><infCons><verAplic>RSb20160107111410</verAplic><cStat>259</cStat><xMotivo>Rejeicao: CNPJ da consult
a nao cadastrado como contribuinte na UF</xMotivo><UF>RS</UF><CNPJ>66907346000186</CNPJ><dhCons>2016-02-28T15:34:56</dhCons><cUF>43
</cUF></infCons></retConsCad></consultaCadastro2Result>
----------
UF:SC
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:SE
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
----------
UF:SP
<consultaCadastro2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro2"><retConsCad versao="2.00" xmlns="http
://www.portalfiscal.inf.br/nfe"><infCons><verAplic>SP_NFE_PL_008h2</verAplic><cStat>111</cStat><xMotivo>Consulta cadastro com uma o
corrência</xMotivo><UF>SP</UF><CNPJ>OMITIDO</CNPJ><dhCons>2016-02-28T15:35:34-03:00</dhCons><cUF>35</cUF><infCad><IE>OMITIDO</IE><CNPJ>OMITIDO</CNPJ><UF>SP</UF><cSit>1</cSit><indCredNFe>1</indCredNFe><indCredCTe>4</indCredCTe><xNome>OMITIDO</xNome><xRegApur>NORMAL - REGIME PERI�DICO DE APURA��O</xRegApur><CNAE>4681802</CNAE><dIn
iAtiv>1991-11-05</dIniAtiv><dUltSit>1991-11-05</dUltSit><ender><xLgr>OMITIDO</xLgr><nro>OMITIDO</nro><xBairro>OMITIDO</
xBairro><cMun>3550308</cMun><xMun>SAO PAULO</xMun><CEP>OMITIDO</CEP></ender></infCad></infCons></retConsCad></consultaCadastro2Res
ult>
----------
UF:TO
Erro SOAP: XML retorno não está no padrão <!DOCTYPE html>??<html>?? <head>?? <title>The resource cannot be found.</title>
?? <meta name="viewport" content="width=device-width" />?? <style>?? body {font-family:"Verdana";font-weight:
normal;font-size: .7em;color:black;} ?? p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}??
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}?? H1 { font-family:"Verdana";font-weight:normal;fo
nt-size:18pt;color:red }?? H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }?? pre {font-
family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}?? .marker {font-weight
: bold; color: black;text-decoration: none;}?? .version {color: gray;}?? .error {margin-bottom: 10px;}?? .e
xpandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }?? @media screen and (max-width: 639px)
{?? pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }?? }?? @media scree
n and (max-width: 479px) {?? pre { width: 280px; }?? }?? </style>?? </head>???? <body bgcolor="white"
>???? <span><H1>Server Error in '/WS' Application.<hr width=100% size=1 color=silver></H1>???? <h2> <i>The re
source cannot be found.</i> </h2></span>???? <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">????
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had
its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.?
? <br><br>???? <b> Requested URL: </b>/ws/cadconsultacadastro/cadconsultacadastro2.asmx<br><br>???? </body
>??</html>??
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 28 Fev 2016 18:35

Pra quem quiser testar, tudo de uma vez.

#define TESTE_SIGLAUF 1
#define TESTE_CNPJ    2

PROCEDURE PTES0160

   LOCAL oSped, oUF, nAmbiente
   LOCAL oSiglasUf := { ;
      { "AC", "03004749000103" }, { "AL", "42591651135405" }, { "AM", "72063654001570" }, { "AP", "09652820003743" }, ;
      { "BA", "18891185000137" }, { "CE", "22416197000187" }, { "DF", "20078336000184" }, { "ES", "06256312000147" }, ;
      { "GO", "20926426000188" }, { "MA", "20059860000299" }, { "MG", "02180624000163" }, { "MS", "09652820001295" }, ;
      { "MT", "06183369000406" }, { "PA", "07204217000324" }, { "PB", "22326700000103" }, { "PE", "03970827000116" }, ;
      { "PI", "58731662018240" }, { "PR", "79957791000100" }, { "RJ", "01422664000888" }, { "RN", "07609246000376" }, ;
      { "RO", "04082624000156" }, { "RR", "15048754011395" }, { "RS", "88579701000178" }, { "SC", "82645862000489" }, ;
      { "SE", "08083204000145" }, { "SP", "23492351000162" }, { "TO", "60746948003219" } }

   FOR EACH oUF in oSiglasUF
      FOR nAmbiente = 1 TO 2
         oSped := SefazClass():New()
         oSped:cVersao := "3.10"
         oSped:cUF := oUF[ TESTE_SIGLAUF ]
         oSped:cAmbiente := Str( nAmbiente, 1 )
         oSped:cCertificado := NomeCertificado( "CORDEIRO" )
         SayScroll( Replicate( "-", 10 ) )
         SayScroll( "UF:" + oSped:cUF )
         SayScroll( oSped:NfeCadastro( oUF[ TESTE_CNPJ ] ) )
         WAIT
      NEXT
   NEXT

   RETURN


Talvez melhor não postar resultado válido, apesar de disponível pra todo mundo.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 29 Fev 2016 21:30

 UF  PRODUCAO  HOMOLOGACAO 
 AC  ERRO  OK 
 AL  ERRO  UF (SVRS) 
 AM  ERRO  ERRO 
 AP  ERRO  UF (SVRS) 
 BA  OK  OK 
 CE  OK  OK 
 DF  ERRO  UF (SVRS) 
 ES  OK  OK 
 GO  OK  OK 
 MA  ERRO  ERRO 
 MG  OK  OK 
 MS  OK  OK 
 MT  UF  ERRO 
 PA  ERRO  ERRO 
 PB  ERRO  OK 
 PE  UF  ERRO 
 PI  ERRO  ERRO 
 PR  ERRO  OK 
 RJ  ERRO  UF (SVRS) 
 RN  ERRO  ERRO 
 RO  ERRO  UF (SVRS) 
 RR  ERRO  UF (SVRS) 
 RS  OK  OK 
 SC  ERRO  OK 
 SE  ERRO  UF (SVRS) 
 SP  OK  OK 
 TO  ERRO  UF (SVRS) 


Legenda:
OK - retornou cadastro
UF - O webservice de consulta respondeu, mas retornou mensagem referente a não atender a UF, ou de não ter cadastro, ou do certificado de outra UF
ERRO - Deu erro mesmo. UF sem consulta cadastro, ou endereço inválido, ou outra coisa, a confirmar
UF (SVRS) - Mesmo que UF, mas retorno da Sefaz Virtual RS

Nota: utilizado certificado de SP, que é válido somente pra algumas UFs
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 29 Fev 2016 22:25

Segundo o site da Fazenda:

UF que utilizam a SVAN - Sefaz Virtual do Ambiente Nacional: MA, PA, PI
UF que utilizam a SVRS - Sefaz Virtual do RS:
- Para serviço de Consulta Cadastro: AC, RN, PB, SC
- Para demais serviços relacionados com o sistema da NF-e: AC, AL, AP, DF, ES, PB, RJ, RN, RO, RR, SC, SE, TO


Já sabemos que ES possui o serviço de cadastro, apesar do portal nfe dizer que não.
Quem tiver certificado/CNPJ dessas UFs que não aceitaram certificado SP, pode testar.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 29 Fev 2016 22:59

É o mesmo endereço pra homologação e produção.
Mas está mostrando versão errada no portal nfe.
Aonde era SVRS e não funcionou produção, já resolveu todos de uma vez.

svrshomo.png


svrsprod.png
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 01 Mar 2016 20:48

Com certificado de SP, funcionaram AC, BA, CE, ES, GO, MG, MS, PB, PR, RN, ES, SC, SP

Não tem consulta cadastro: AL, AP, DF, PA, PI, RJ, RO, RR, SE, TO

Não aceitaram certificado: MT, PE

Não resolvidos: AM, MA

Nota: coincidência curiosa AM é o contrário de MA
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 01 Mar 2016 21:03

Amazonas.... resolvido era problema com letras maiúsculas no endereço do webservice.

Mas uma situação curiosa:
Em produção retorna empresa não cadastrada como contribuinte, mas em homologação retorna o cadastro.
Não aceitou o CNPJ do certificado pra consulta.

Só sobrou Maranhão mesmo, mas nem sequer o site de NFE de lá funciona.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 02 Mar 2016 22:57

Maranhão o endereço do webservice estava com uma letra C maiúscula quando deveria ser minúscula.
Mas ainda não funcionou, o retorno é esquisito. Só achei sobre isso em páginas de java.

<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap
-envelope"><S:Body><S:Fault xmlns:ns4="http://schemas.xmlsoap.org/soap/envelope/"><S:Code><S:Value>S:Receiver</S:Value></S:Code><S:
Reason><S:Text xml:lang="en">org.apache.xerces.dom.ElementNSImpl cannot be cast to java.lang.String</S:Text></S:Reason></S:Fault></
S:Body></S:Envelope>
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor JoséQuintas » 02 Mar 2016 23:01

Bom... de 26 UFs.... só o Maranhão não funcionou. Como tudo é padrão... Maranhão não está no padrão.

Se alguém tiver como pegar o arquivo que é transmitido pro Maranhão, resolveria o problema.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor douglasamfm » 19 Out 2016 13:15

Pessoal boa tarde.
Alguém tem o endereço correto do web service do Amazonas?

Aqui no portal http://www.nfe.fazenda.gov.br/portal/we ... Ks=#SVC-RS
o endereço esta incorreto.

https://nfe.sefaz.am.gov.br/services2/s ... stro2?wsdl

Estou testando pelo aplicativo SoapUI 5.2.1 e esta me retornando o erro.:
Error loading [https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2?wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Reference to undefined entity: nbsp
douglasamfm
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 3
Data de registro: 19 Out 2016 10:36
Cidade/Estado: Vespasiano/MG
Curtiu: 1 vez
Mens.Curtidas: 0 vez

Consulta cadastro

Mensagempor douglasamfm » 19 Out 2016 13:48

Com esse caminho aqui funcionou

://nfe.sefaz.am.gov.br/services2/services/CadConsultaCadastro2
douglasamfm
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 3
Data de registro: 19 Out 2016 10:36
Cidade/Estado: Vespasiano/MG
Curtiu: 1 vez
Mens.Curtidas: 0 vez

Consulta cadastro

Mensagempor JoséQuintas » 19 Out 2016 14:22

Anotei quando testei

         CASE nWsServico == WS_NFE_CONSULTACADASTRO ;    cUrlWs := UrlWebService( "AM", WS_AMBIENTE_HOMOLOGACAO, nWsServico )
            // restrito a contribuintes // cUrlWs := "https://nfe.sefaz.am.gov.br/services2/services/CadConsultaCadastro2"
...
         CASE nWsServico == WS_NFE_CONSULTACADASTRO ;    cUrlWs := "https://homnfe.sefaz.am.gov.br/services2/services/CadConsultaCadastro2"
José M. C. Quintas
Harbour 3.2, mingw, gtwvg, multithread, dbfcdx, ADO+MySql, PNotepad
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar de usuário

JoséQuintas
Membro Master

Membro Master
 
Mensagens: 18013
Data de registro: 26 Fev 2007 11:59
Cidade/Estado: São Paulo-SP
Curtiu: 15 vezes
Mens.Curtidas: 1206 vezes

Consulta cadastro

Mensagempor douglasamfm » 20 Out 2016 07:55

José, obrigado pelo retorno.
Me tire mais uma duvida por favor, em outra mensagem você fala que havia conseguido em 26 estados, nisso inclui DF, pq em uma outra mensagem vc tinha postado que os seguintes estados não tem consulta cadastro: AL, AP, DF, PA, PI, RJ, RO, RR, SE, TO.

E preciso fazer essa busca por todos, mas no momento o que tem sido minha prioridade é DF
douglasamfm
Usuário Nível 1

Usuário Nível 1
 
Mensagens: 3
Data de registro: 19 Out 2016 10:36
Cidade/Estado: Vespasiano/MG
Curtiu: 1 vez
Mens.Curtidas: 0 vez

Próximo



Retornar para Projeto hbNFe

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 3 visitantes


Ola Amigo, espero que meu site e forum tem lhe beneficiado, com exemplos e dicas de programacao.
Entao divulgue o link da Doacao abaixo para seus amigos e redes sociais ou faça uma doacao para o site forum...
MUITO OBRIGADO PELA SUA DOACAO!
Faça uma doação para o forum
cron
v
Olá visitante, seja bem-vindo ao Fórum Clipper On Line!
Efetue o seu login ou faça o seu Registro