Página 1 de 1

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 18:57
por JoséQuintas
Testei todas as UFs de uma vez.
Não façam isso em casa.
Consulta Status ambiente homologação:

Código: Selecionar todos

PROCEDURE PTES0160

   LOCAL oSped, cSiglaUF
   LOCAL aUFs

   aUFs := { "AC", "AL", "AM", "AP", "BA", "CE", "DF", "ES", "GO", "MG", "MS", "MT", "MA", "PA", "PB", "PE", "PI", ;
       "PR", "RJ", "RO", "RN", "RR", "RS", "SC", "SE", "SP", "TO" }

   FOR EACH cSiglaUF IN aUFs
      oSped := SefazClass():New()
      oSped:cVersao := "3.10"
      oSped:cUF := cSiglaUF
      oSped:cAmbiente := "2"
      SayScroll( Replicate( "-", 80 ) )
      SayScroll( "UF:" + oSped:cUF )
      SayScroll( oSped:NfeStatus() )
      WAIT
   NEXT
   WAIT
   RETURN
Resultado:
--------------------------------------------------------------------------------
UF:AC
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>12</cUF><dhRecbto>2016-02-23T18:47:34-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:AL
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>27</cUF><dhRecbto>2016-02-23T18:47:40-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:AM
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>2</tpAmb><verAplic>AM3.10</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMot
ivo><cUF>13</cUF> <dhRecbto>2016-02-23T17:44:28-04:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:AP
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>16</cUF><dhRecbto>2016-02-23T18:47:52-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:BA
<nfeStatusServicoNFResult xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns:xsi="http://www.w
3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10
"><tpAmb>2</tpAmb><verAplic>SEFAZBA_NFENW_v6.0.0</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotivo><cUF>29</cUF><dh
Recbto>2016-02-23T18:47:57-03:00</dhRecbto></retConsStatServ></nfeStatusServicoNFResult>
--------------------------------------------------------------------------------
UF:CE
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>2</tpAmb><verAplic>CE_NFe_V3.10.0.30</verAplic><cStat>107</cStat><xMotivo>Servico em Ope
racao</xMotivo><cUF>23</cUF><dhRecbto>2016-02-23T18:48:28-03:00</dhRecbto><tMed>1</tMed><dhRetorno>2016-02-23T18:48:29-03:00</dhRet
orno></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:DF
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>53</cUF><dhRecbto>2016-02-23T18:48:30-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:ES
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>32</cUF><dhRecbto>2016-02-23T18:48:32-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
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:Heade
r><env:Body><nfeStatusServicoNF2Result xmlns='http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao='3
.10' xmlns='http://www.portalfiscal.inf.br/nfe' xmlns:ns2='http://www.w3.org/2000/09/xmldsig#'><tp ... GO3.0</ver
Aplic><cStat>107</cStat><xMotivo>Serviço em operação</xMotivo><cUF>52</cUF><dhRecbto>2016-02-23T18:48:37-03:00</dhRecbto><tMed>1
</tMed><dhRetorno>2016-02-23T18:48:37-03:00</dhRetorno><xObs>Aguarde 3 minutos para a realização de uma nova consulta.</xObs></re
tConsStatServ></nfeStatusServicoNF2Result></env:Body></env:Envelope>
--------------------------------------------------------------------------------
UF:MG
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10">? <tpAmb>2</tpAmb>? <verAplic>13_3_13</verAplic>? <cStat>107</cStat>? <xMotivo>Servico em o
peracao</xMotivo>? <cUF>31</cUF>? <dhRecbto>2016-02-23T18:49:07-03:00</dhRecbto>? <tMed>1</tMed>?</retConsStatServ></nfeStatusSe
rvicoNF2Result>
--------------------------------------------------------------------------------
UF:MS
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>2</tpAmb><verAplic>MS.SPRINGS-20151001</verAplic><cStat>107</cStat><xMotivo>Servico em O
peracao</xMotivo><cUF>50</cUF><dhRecbto>2016-02-23T17:49:18-04:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Re
sult>
--------------------------------------------------------------------------------
UF:MT
Erro: No componente para SOAP
--------------------------------------------------------------------------------
UF:MA
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Operacao</
xMotivo><cUF>21</cUF><dhRecbto>2016-02-23T18:49:51-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:PA
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Operacao</
xMotivo><cUF>15</cUF><dhRecbto>2016-02-23T18:49:53-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:PB
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>25</cUF><dhRecbto>2016-02-23T18:49:54-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:PE
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe">?<t ... tivo>Servi&#
xE7;o em Operação</xMotivo>?<cUF>26</cUF> ?<dhRecbto>2016-02-23T18:49:57-03:00</dhRecbto><tMed>1</tMed></retConsStatServ>
</nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:PI
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Operacao</
xMotivo><cUF>22</cUF><dhRecbto>2016-02-23T18:50:14-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:PR
Erro: No componente para SOAP
--------------------------------------------------------------------------------
UF:RJ
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>33</cUF><dhRecbto>2016-02-23T18:50:19-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RO
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>11</cUF><dhRecbto>2016-02-23T18:50:20-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RN
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>24</cUF><dhRecbto>2016-02-23T18:50:38-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RR
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>14</cUF><dhRecbto>2016-02-23T18:50:40-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RS
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:SC
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>42</cUF><dhRecbto>2016-02-23T18:51:00-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:SE
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>28</cUF><dhRecbto>2016-02-23T18:51:02-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:SP
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... o>Serviço em Oper
ação</xMotivo><cUF>35</cUF><dhRecbto>2016-02-23T18:51:02-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Res
ult>
--------------------------------------------------------------------------------
UF:TO
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>17</cUF><dhRecbto>2016-02-23T18:53:51-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>

A resolver: MT, PR, RS

Só comentário: nunca consultei status do serviço, nem de homologação e nem de produção.
Só testei quando criei, pra testar, com SP, e nunca mais usei.
Funcionar em 24 UFs e 3 não, mostra que tem UF fora do padrão nacional (ou tem erro no endereço do webservice... rs)

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 19:12
por JoséQuintas
Também é interessante notar que dependendo da UF, a mensagem pode ou não conter acentuação.
Tudo bem, isso não é problema, mas mostra que o negócio não é tão padrão.

Consulta Status não obriga que o certificado esteja cadastrado na UF, então dá pra testar tudo de uma vez.

Pra outros serviços, só quem tem certificado da UF.

Mas já dá pra brincar bastante..... rs

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 19:17
por JoséQuintas
Agora em produção:
--------------------------------------------------------------------------------
UF:AC
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:AL
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:AM
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>1</tpAmb><verAplic>AM3.10</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMot
ivo><cUF>13</cUF> <dhRecbto>2016-02-23T18:13:45-04:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:AP
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:BA
<nfeStatusServicoNFResult xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns:xsi="http://www.w
3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10
"><tpAmb>1</tpAmb><verAplic>SEFAZBA_NFENW_v6.0.0</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotivo><cUF>29</cUF><dh
Recbto>2016-02-23T19:13:50-03:00</dhRecbto></retConsStatServ></nfeStatusServicoNFResult>
--------------------------------------------------------------------------------
UF:CE
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>1</tpAmb><verAplic>CE_NFe_V3.10.0.30</verAplic><cStat>107</cStat><xMotivo>Servico em Ope
racao</xMotivo><cUF>23</cUF><dhRecbto>2016-02-23T19:13:52-03:00</dhRecbto><tMed>1</tMed><dhRetorno>2016-02-23T19:13:53-03:00</dhRet
orno></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:DF
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:ES
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
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:Heade
r><env:Body><nfeStatusServicoNF2Result xmlns='http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao='3
.10' xmlns='http://www.portalfiscal.inf.br/nfe' xmlns:ns2='http://www.w3.org/2000/09/xmldsig#'><tp ... GO3.0</ver
Aplic><cStat>107</cStat><xMotivo>Serviço em operação</xMotivo><cUF>52</cUF><dhRecbto>2016-02-23T19:14:19-03:00</dhRecbto><tMed>1
</tMed><dhRetorno>2016-02-23T19:14:19-03:00</dhRetorno><xObs>Aguarde 3 minutos para a realização de uma nova consulta.</xObs></re
tConsStatServ></nfeStatusServicoNF2Result></env:Body></env:Envelope>
--------------------------------------------------------------------------------
UF:MG
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10">? <tpAmb>1</tpAmb>? <verAplic>13_3_12</verAplic>? <cStat>107</cStat>? <xMotivo>Servico em o
peracao</xMotivo>? <cUF>31</cUF>? <dhRecbto>2016-02-23T19:14:23-03:00</dhRecbto>? <tMed>1</tMed>?</retConsStatServ></nfeStatusSe
rvicoNF2Result>
--------------------------------------------------------------------------------
UF:MS
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>1</tpAmb><verAplic>MS201503300900</verAplic><cStat>107</cStat><xMotivo>Servico em Operac
ao</xMotivo><cUF>50</cUF><dhRecbto>2016-02-23T18:14:41-04:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:MT
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>1</tpAmb><verAplic>3.10</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotiv
o><cUF>51</cUF><dhRecbto>2016-02-23T18:14:43-04:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:MA
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Operacao</
xMotivo><cUF>21</cUF><dhRecbto>2016-02-23T19:14:44-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:PA
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Operacao</
xMotivo><cUF>15</cUF><dhRecbto>2016-02-23T19:14:45-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
UF:PB
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:PE
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe">?<t ... tivo>Servi&#
xE7;o em Operação</xMotivo>?<cUF>26</cUF> ?<dhRecbto>2016-02-23T19:15:01-03:00</dhRecbto><tMed>1</tMed></retConsStatServ>
</nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:PI
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Operacao</
xMotivo><cUF>22</cUF><dhRecbto>2016-02-23T19:15:02-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
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'><cU ... s>3.10</ve
rsaoDados></nfeCabecMsg></env:Header><env:Body xmlns:env='http://www.w3.org/2003/05/soap-envelope ... coNFResult xmlns=
'http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao='3.10' xmlns='http://www.portalfiscal.inf.br/nf
e'><tpAmb>1</tpAmb><verAplic>PR-v3_5_1</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotivo><cUF>41</cUF><dhRecbto>201
6-02-23T19:15:06-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNFResult></env:Body></env:Envelope>
--------------------------------------------------------------------------------
UF:RJ
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:RO
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:RN
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:RR
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:RS
Erro: No componente para SOAP
--------------------------------------------------------------------------------
UF:SC
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:SE
Erro SOAP: Não há endereço de webservice
--------------------------------------------------------------------------------
UF:SP
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... o>Serviço em Oper
ação</xMotivo><cUF>35</cUF><dhRecbto>2016-02-23T19:16:06-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Res
ult>
--------------------------------------------------------------------------------
UF:TO
Erro SOAP: Não há endereço de webservice

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 19:19
por JoséQuintas
Nota: 5 minutos pra 27 UFs... Acho que tá bom, quase 1 consulta a cada 6 segundos, incluindo demora por falha, meu ENTER em cada UF, e o copiar/colar pra postar aqui.

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 19:22
por JoséQuintas
Em produção, lista a verificar: AC, AL, AP, DF, ES, RJ, RO, RN, RR, RS, SC, SE, TO

Caso usem o Sefaz Virtual, por ser mesmo endereço de webservice, pode ser obrigatório o tempo de espera entre cada consulta.
E o erro ser consultar muito rápido.... rs

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 19:52
por JoséQuintas
Todas essas que acusou falha em produção, utilizam o SVRS. Faltava o endereço do webservice.
Novo teste só com as que falharam antes em produção:
UF:AC
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>12</cUF><dhRecbto>2016-02-23T19:48:37-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:AL
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>27</cUF><dhRecbto>2016-02-23T19:48:40-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:AP
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>16</cUF><dhRecbto>2016-02-23T19:48:44-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:DF
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>53</cUF><dhRecbto>2016-02-23T19:48:45-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:ES
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>32</cUF><dhRecbto>2016-02-23T19:48:47-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RJ
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>33</cUF><dhRecbto>2016-02-23T19:48:49-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RO
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>11</cUF><dhRecbto>2016-02-23T19:49:11-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RN
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>24</cUF><dhRecbto>2016-02-23T19:49:12-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RR
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>14</cUF><dhRecbto>2016-02-23T19:49:16-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:RS
Erro: No componente para SOAP
UF:SC
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>42</cUF><dhRecbto>2016-02-23T19:50:03-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:SE
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>28</cUF><dhRecbto>2016-02-23T19:50:04-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>
--------------------------------------------------------------------------------
UF:TO
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Oper
acao</xMotivo><cUF>17</cUF><dhRecbto>2016-02-23T19:50:05-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Resul
t>

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 19:56
por JoséQuintas
Falta verificar então:

Consulta Status em produção: RS
Consulta Status em homologação: MT, PR, RS

Legal, de 54 consultas, apenas 4 pendentes.

De 27 UFs, apenas 3 não aceitaram o padrão.
Não é a classe que está errada, as UFs é que parecem não ter seguido o padrão.... rs

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 20:08
por JoséQuintas
Novo teste homologação:
--------------------------------------------------------------------------------
UF:MT
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>2</tpAmb><verAplic>3.10</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotiv
o><cUF>51</cUF><dhRecbto>2016-02-23T19:06:28-04:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
UF:PR
Erro: No componente para SOAP
--------------------------------------------------------------------------------
UF:RS
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Operac
ao</xMotivo><cUF>43</cUF><dhRecbto>2016-02-23T20:06:46-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
Só alterei RS, agora MT também funcionou, vai entender... acho que não pode ser muito rápido.... rs
Eu não tinha colocado nenhum endereço de homologação do RS.
O MT deve ter sido falha temporária, ou seja, o teste não serve pra testar.... rs

Teste em produção, só pra garantir:
--------------------------------------------------------------------------------
UF:MT
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ xmlns="http://www.por
talfiscal.inf.br/nfe" versao="3.10"><tpAmb>1</tpAmb><verAplic>3.10</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotiv
o><cUF>51</cUF><dhRecbto>2016-02-23T19:09:13-04:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>
--------------------------------------------------------------------------------
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'><cU ... s>3.10</ve
rsaoDados></nfeCabecMsg></env:Header><env:Body xmlns:env='http://www.w3.org/2003/05/soap-envelope ... coNFResult xmlns=
'http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao='3.10' xmlns='http://www.portalfiscal.inf.br/nf
e'><tpAmb>1</tpAmb><verAplic>PR-v3_5_1</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotivo><cUF>41</cUF><dhRecbto>201
6-02-23T20:09:14-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNFResult></env:Body></env:Envelope>
--------------------------------------------------------------------------------
UF:RS
Erro: No componente para SOAP
Resta pra resolver: PR homologação e RS produção

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 20:32
por JoséQuintas
Ok, PR era pegadinha.
Não sei porque alguém poderia querer testar a NF 2.00 que não vale mais.
Acabei copiando o endereço errado.
--------------------------------------------------------------------------------
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'><cU ... s>3.10</ve
rsaoDados></nfeCabecMsg></env:Header><env:Body xmlns:env='http://www.w3.org/2003/05/soap-envelope ... coNFResult xmlns=
'http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao='3.10' xmlns='http://www.portalfiscal.inf.br/nf
e'><tpAmb>2</tpAmb><verAplic>PR-v3_5_1</verAplic><cStat>107</cStat><xMotivo>Servico em Operacao</xMotivo><cUF>41</cUF><dhRecbto>201
6-02-23T20:30:15-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNFResult></env:Body></env:Envelope>
--------------------------------------------------------------------------------
Só falta RS produção.

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 20:40
por JoséQuintas
Endereços estavam errados.
--------------------------------------------------------------------------------
UF:RS
<nfeStatusServicoNF2Result xmlns="http://www.portalfiscal.inf.br/nfe/wsdl ... nsStatServ versao="3.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tp ... vo>Servico em Operac
ao</xMotivo><cUF>43</cUF><dhRecbto>2016-02-23T20:38:58-03:00</dhRecbto><tMed>1</tMed></retConsStatServ></nfeStatusServicoNF2Result>

Pronto.
54 consultas resolvidas, qualquer consulta status, pra qualquer UF e qualquer ambiente.

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 20:48
por JoséQuintas
Pra quem quiser confirmar as mudanças durante este teste:
Só endereços de webservice.

Aproveitei pra alterar o retorno quando falha a comunicação, de "Erro: no componente para SOAP" para "Erro: na comunicação SOAP"

https://github.com/JoseQuintas/sefazcla ... 1f1bf40ba1

Testando todas as UFs (não façam isso em casa)

Enviado: 23 Fev 2016 20:53
por JoséQuintas
Lembrando:
Só tenho certificado de São Paulo. Pra consultar status meu certificado foi aceito em todas as UFs.
São muito poucas as operações onde isso é válido.