Jump to content

ATCUD - Could not connect to host


Recommended Posts

Alguém pode me ajudar com o problema abaixo? Parou de funcionar no ambiente de Homologação do nada, e sempre volta o mesmo erro: Could not connect to host

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://at.gov.pt/">
   <env:Header>
      <wss:Security xmlns:wss="http://schemas.xmlsoap.org/ws/2002/12/secext">
         <wss:UsernameToken>
            <wss:Username>999999999/9999</wss:Username>
            <wss:Password>xxxxxxxxxxxxxxxxxxxxxxxx</wss:Password>
            <wss:Nonce>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</wss:Nonce>
            <wss:Created>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</wss:Created>
         </wss:UsernameToken>
      </wss:Security>
   </env:Header>
   <env:Body>
      <ns1:registarSerie>
         <serie>AAA001</serie>
         <tipoSerie>N</tipoSerie>
         <classeDoc>SI</classeDoc>
         <tipoDoc>FS</tipoDoc>
         <numInicialSeq>1</numInicialSeq>
         <dataInicioPrevUtiliz>2022-10-01</dataInicioPrevUtiliz>
         <numCertSWFatur>1234</numCertSWFatur>
         <meioProcessamento>PI</meioProcessamento>
      </ns1:registarSerie>
   </env:Body>
</env:Envelope>

    [__soap_fault] => SoapFault Object
        (
            [message:protected] => Could not connect to host
 

Obrigado

Link to comment
Share on other sites

O servidor não consegue conectar ao serviço de registo de séries:

https://servicos.portaldasfinancas.gov.pt:722/SeriesWSService

 

Sugiro no servidor testar a ligação a https://servicos.portaldasfinancas.gov.pt:722/SeriesWSService . Se for em Linux pode-se testar com o seguinte comando:

 

$ curl -vv https://servicos.portaldasfinancas.gov.pt:722/SeriesWSService

Link to comment
Share on other sites

Obrigado pela atenção
Retornou o seguinte resultado:

elson@tlanpoa-nb10 ~/repositories/fusion-kinda (kinda_release_2.40.4) $ curl -vv https://servicos.portaldasfinancas.gov.pt:722/SeriesWSService
*   Trying 62.28.254.207...
* TCP_NODELAY set
* Connected to servicos.portaldasfinancas.gov.pt (62.28.254.207) port 722 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Request CERT (13):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS alert, Server hello (2):
* error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
* stopped the pause stream!
* Closing connection 0
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
 

 

Edited by Elson Jose Fritzen
Link to comment
Share on other sites

Viva.

 

O comando testado foi no servidor? Se sim pelo menos o serviço da AT é reachable pelo servidor. 

 

A aplicação corre em que plataforma (Java, PHP, .NET)?

O endereço HTTPS para o serviço das séries encontra-se corretamente configurado na aplicação?

Os seguintes dados do cabeçalho XML estão a ser encriptados?

<wss:Password>xxxxxxxxxxxxxxxxxxxxxxxx</wss:Password>            

<wss:Nonce>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</wss:Nonce>            

<wss:Created>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</wss:Created>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.