EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Link copied. Please paste this link to share this article on your social media post.
Posted: β2020-07-03 01:50 PM . Last Modified: β2024-04-08 01:29 AM
Hi,
I'm just starting to develop an application that interact to DCO via webservices.
Could you suggest me a webservice client example?
I've found this example:
Where can I download DOC webservices api?
thanks
luca
(CID:113645077)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2020-07-03 01:50 PM . Last Modified: β2024-04-08 01:29 AM
Hi lucama
Thank you for your question. The section you have found is a bit outdated (I'll make sure that it is updated)
For the latest information regarding DCO 8.0 webservices take a look here:
https://dcimsupport.apc.com/display/UADCO8x/Advanced+use
This sub topic of the page above is also great - it tells you how to access the API on the DCO server as well as DCIM support, it also points to a small video tutorial:
Best Regards
Anders
(CID:114230983)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2020-07-03 01:50 PM . Last Modified: β2024-04-08 01:29 AM
Hi lucama
Thank you for your question. The section you have found is a bit outdated (I'll make sure that it is updated)
For the latest information regarding DCO 8.0 webservices take a look here:
https://dcimsupport.apc.com/display/UADCO8x/Advanced+use
This sub topic of the page above is also great - it tells you how to access the API on the DCO server as well as DCIM support, it also points to a small video tutorial:
Best Regards
Anders
(CID:114230983)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2020-07-03 01:50 PM . Last Modified: β2024-04-08 01:29 AM
Thanks.
Where can I find some example of a java rest client?
thanks in advance
luca
(CID:114822180)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2020-07-03 01:50 PM . Last Modified: β2024-04-08 01:29 AM
I'm trying with this simple apache cxf rest client:
WebClient webClient = WebClient.create("https://
WebClient path = webClient.path("/assets").accept(MediaType.APPLICATION_JSON);
Response response = path.get();
and this exception ha been raised:
Caused by: javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking https://10.4.4.32:443/assets: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
thanks
(CID:114822185)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2020-07-03 01:51 PM . Last Modified: β2024-04-08 01:29 AM
Hi lucama
This issue happens because your DCO server is running with a self signed certificate. You can either install a signed certificate from a thrusted authority as described here:
Changing SSL certificate on the server
or add the self signed certificate to the list of trusted certificates of your JVM as this question is explaining:
/Anders
(CID:114822276)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2020-07-03 01:51 PM . Last Modified: β2024-04-08 01:29 AM
Thanks for your response.
I've loaded in jdk cacerts self signed certificate, and I haven't PKIX path building failed.
But now I 've another strange exception:
Caused by: java.io.IOException: IOException invoking https://10.4.4.32:443/api/current/assets: HTTPS hostname wrong: should be <10.4.4.32>
Any hints?
I've tried to implement javax.net.ssl.HostnameVerifier and always return true in method verify(String hostname, SSLSession session)
but it isn't invoked
thnks in advance
(CID:114822388)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2020-07-03 01:51 PM . Last Modified: β2023-10-22 01:42 AM
This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.