Bonjour,
Pouvez-vous m'indiquer quelle est l'URL d'appel de l'API vSphere?
J'ai essaye les URL "https://pcc-123-45-67-89.ovh.ca/" et "https://pcc-123-45-67-89.ovh.ca/sdk/" mais j'ai une erreur
"RemoteException: VI SDK invoke exceptionrg.dom4j.DocumentException:
Error on line 1 of document : White spaces are required between publicId and systemId.
Nested exception: White spaces are required between publicId and systemId."
Exemple de code java:
Code:
new ServiceInstance(new URL("https://pcc-123-45-67-89.ovh.ca/"), username, password);
Exception:
Code:
java.rmi.RemoteException: VI SDK invoke exception:org.dom4j.DocumentException: Error on line 1 of document : White spaces are required between publicId and systemId. Nested exception: White spaces are required between publicId and systemId.
at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:183)
at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:125)
at com.vmware.vim25.ws.VimStub.retrieveServiceContent(VimStub.java:1409)
at com.vmware.vim25.mo.ServiceInstance.(ServiceInstance.java:85)
at com.vmware.vim25.mo.ServiceInstance.(ServiceInstance.java:69)
at com.vmware.vim25.mo.ServiceInstance.(ServiceInstance.java:63)
at localdomain.localhost.VsphereConnectionTest.testConnection(VsphereConnectionTest.java:38)