Problems connecting to RESTful web service with webread

6 visualizaciones (últimos 30 días)
J.C.
J.C. el 20 de Oct. de 2014
Comentada: Duaa el 14 de En. de 2018
I'm having intermittent problems using webread to get data from a subscription based RESTful web service. I can open the API using the MATLAB browser, but if I use webread I get one of three results:
  1. Error using webread (line 128)The server returned the message: "sun.security.validator.ValidatorException: PKIX path building failed:sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" for URL,'#address#' (with HTTP response code unknown).
  2. The server returned the message: "Remote host closed connection during handshake" for URL,'#address#' (with HTTP response code unknown).
  3. On rare occasions it works
Which of the three results I get seems to be random. I've run webread three times in succession and had each of the three results. The website uses GoDaddy as the certificate authority and java doesn't come with the intermediate certificate that GoDaddy uses. They sent me their certificate and I added it to the MATLAB keystore using the method described here: http://www.mathworks.com/matlabcentral/answers/92506-can-i-force-urlread-and-other-matlab-functions-which-access-internet-websites-to-open-secure-websi. I have also contacted our corporate IT and had them add the website to the exception list from being SSL decrypted, but I still have the error.
Any ideas?
Thanks,
J.C.
  1 comentario
Duaa
Duaa el 14 de En. de 2018
Hi J.C I am wondering how did you connect with the website server using the api. I am trying to connect with the server but couldn't. Could you please tell me how did you connect the website server? Thank you

Iniciar sesión para comentar.

Respuestas (0)

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by