VMware Cloud Community
nb951
Contributor
Contributor

vro 8.0 java rest client

hi please provide any sample code doc to use VRO 8.0 java rest client ?
0 Kudos
8 Replies
nb951
Contributor
Contributor

attached is reference to java client for 7.x , please help suggest the location of jars and sample client to work with 8.0 
0 Kudos
daphnissov
Immortal
Immortal

What are you asking about because it doesn't make sense? How to communicate with the vRO server over REST? How to somehow proxy REST to a vRO client?? Don't understand.

0 Kudos
iiliev
VMware Employee
VMware Employee

Well, there were almost no changes affecting REST clients between vRO 7.x and 8. One of the breaking changes is that the base REST endpoint URL is not https://orchestrator_ip_or_host:8281/vco/api, but https://orchestrator_fqdn/vco/api  (you won't be able to use IP address anymore).

vRO 8 appliance still hosts a local Maven repository with most of vRO JAR files. In vRO 8, you can find it under /data/vco/usr/lib/vco/downloads/vco-repo/. In a future release, we may make this a separate download, but for now it is hosted there.

0 Kudos
nb951
Contributor
Contributor

java 7.6 client jar  o11n-rest-client-services-7.6.0.jar works with 8.0 vro Server

however 8.0 jar does not work

0 Kudos
iiliev
VMware Employee
VMware Employee

Could you provide more details on what's not working with 8.0 client jar (eg. error stack trace, etc.)?

Also, if possible, could you send some sample code so we can compile it and try to reproduce the problem in our environments?

0 Kudos
nb951
Contributor
Contributor

refer the attached zip file above , the imports that do not work is listed

o11n-rest-client-services-8.0.0.jar --for example is missing package services ,

this is available in 7.6  jar and works ok 

0 Kudos
nb951
Contributor
Contributor

refer the attached zip file above , the imports that do not work is listed

o11n-rest-client-services-8.0.0.jar --for example is missing package services ,

this is available in 7.6  jar and works ok 

0 Kudos
iiliev
VMware Employee
VMware Employee

Tried some simple calls, like getting the list of all packages and workflows, using PackageService and WorkflowService classes from o11n-rest-client-services-8.0.0.jar

Seems to work just fine.

0 Kudos