Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

vCO Java Rest SDK

$
0
0

I played around vCO Java Rest SDK (o11n-rest-client-services-5.5.1.jar , o11n-rest-client-stubs-5.5.1.jar) and have the following questions:

 

Q1) Where can I get the source codes of  the Java Rest SDK ? I am mainly interested for the source codes of o11n-rest-client-services-5.5.1.jar and o11n-rest-client-stubs-5.5.1.jar


Q2) I used the provided sample to execute to a vCO workflow but it returned  "401 Full authentication is required to access this resource". I then debugged and found out that vCO Java Rest SDK d not set any "Authorization" header for the basic authentication  in the HTTP request . I then  decompiled vCO Java Rest SDK and did not find there are codes that  will set the "Authorization" header . I traced the source codes  and finally solved this issue by implementing the basic authentication algorithm by overriding UsernamePasswordAuthentication#postProcessRequest() . So  , I want to ask if the vCO Java Rest SDK can be used out of the box ? Or it is just a semi-finished product and expect developer to implement the rest of code ?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>