Home > vSphere API > Announcing Code Generator For vSphere Java API

Announcing Code Generator For vSphere Java API

February 1st, 2012 Leave a comment Go to comments

As I tweeted last week, there would be a big announcement when the open source VI Java API gets 20,000 downloads. It hit target yesterday. To celebrate it, I decide to release the code generator for the API, which William (@lamw) rated as “awesome.”

If you have used Onyx for generating PowerCLI code before, you can think it as Java version of Onyx. Even better, it generates complete Java code which is ready to run once you supply the URL, username, and password. It’s so easy that from now on, all the system administrators have no excuse for not trying open source vSphere Java API. :-)

At its heart, the code generator is a reversed proxy which sits between a vSphere Client and vCenter or ESX(i) server, and intercepts the SOAP XML messages. With the XML messages, I designed the algorithm to automatically generate the Java code based on the open source Java API code.

Unlike Onyx, the Java code generator provides richer GUI which allows you to:

  • Record both the requests and responses.
  • Sort the recorded messages in any order.
  • Generate complete code of any selected requests.
  • Save recorded messages to a local file, and read it back later.
  • Support raw HTTP data, XML, Java simultaneously in different tabs.

Although the generator supports only Java today, I did designed it to be extensible architecture for other languages like Jython, JRuby, Perl, etc. When I have time, I will continue to work on these in the future.

Too much talk? Let’s take a peek at a few screenshots in this page which includes download link and getting started tutorial. Shorter than my 5 minute VI Java API tutorial, it should be less than one minute this time.

Hope you enjoy the tool and let me how you like it.

  1. February 1st, 2012 at 07:31 | #1

    This does sound “Awesome”. I can’t wait to try it out.

  2. monsrud
    February 8th, 2012 at 14:50 | #2

    Thanks. This will be extremely helpful.

  3. Abe
    February 25th, 2012 at 07:55 | #3

    Hello,
    Can this tool be used to emulate a Virtual Center? We have a need for such a tool that can simulate 1000+ VMs.

    Thanks

  4. February 26th, 2012 at 16:11 | #4

    It cannot emulate a vCenter as it is. What’s the purpose for the emulation?
    Steve

  5. Louis Jia
    April 23rd, 2012 at 15:24 | #5

    What is URL to download this powerful tool?

  6. April 23rd, 2012 at 15:39 | #6
  1. No trackbacks yet.