Problems connecting to RESTful web service with webread
8 views (last 30 days)
Show older comments
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:
- 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).
- The server returned the message: "Remote host closed connection during handshake" for URL,'#address#' (with HTTP response code unknown).
- 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 Comment
Duaa
on 14 Jan 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
Answers (0)
See Also
Categories
Find more on Web Services in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!