OVH Community, votre nouvel espace communautaire.

URL d'appel de l'API vSphere


cleclerc
10/03/2015, 18h24
La cause est trouvée: j'utilisais le client vijava 5.1 qui est incompatible avec un vCenter 5.5 sans meilleur message d'erreur.

La solution est de builder un vijava compatible vCenter 5.5 en prenant le trunk du code source de http://sourceforge.net/p/vijava/code/HEAD/tree/

Cyrille

cleclerc
09/03/2015, 17h49
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)