DoubleCloud Proxy

Welcome to Code Generator for vSphere Java API, as known as DoubleCloud Proxy.

Download and Setup

The code generator is a single executable Java jar file. You can simple download the jar file here to your local computer. If you already have Java Runtime (JRE) 1.6 or higher installed, all you need to do is to double click on the executable file steveproxy.jar.

If you are new to Java, you want to check out the download page of JRE (http://www.java.com/en/download/index.jsp) and install JRE onto your computer first. The installation should be straight-forward. If you need help on installing Java, just check out the links on the page.

Getting Started

After you starting the application, you should see the following GUI.

To start proxy, you click on the File-New… menu item. A dialog box will show up as follows:

You want to change the IP address to your vCenter or ESXi address. You can leave the port mapping as it is unless you find a port conflict. After clicking OK button, the proxy will start.

Now start the vSphere Client. In the following dialog box, enter IP as shown in follows, and then username and password. Please don’t use doublecloud username unless you do have such a username.

After that, the vSphere Client will work as if you were connecting to a real vCenter server. You will see messages being added to the table while vSphere Client getting started.

You can drive the vSphere Client for more messages. At the same time, you can select one or many request messages to generate Java code. You can also check out other tabs for SOAP XML or even raw HTTP messages. With the generated code, you can run as other VI Java Applications. Check out the 5 minutes Getting Started Tutorial.

Along the way, you can save the messages to a local file for any number of times you want. You can read them back later on.

But once you open a previously recorded message file, the proxy is going to stop. So the software will warn you whether you want to move forward.

Well, I guess that is pretty much all about this tool: powerful yet simple to use. Please come back for more updates and releases.

61 Comments

  1. Posted September 20, 2013 at 5:20 am | Permalink

    impressive

  2. Nate
    Posted October 2, 2013 at 2:10 am | Permalink

    This is a godsend. I’ve been trying to implement the SOAP API in php for weeks. This tells me exactly how the format should be if I proxy a vsphere client through it. You have my gratitude.

  3. tom
    Posted November 20, 2013 at 6:44 pm | Permalink

    It worked great the first time I used it. Then while using it that first time, I tried disconnecting a VM’s network connection (to see what the Java code would look like) and all of a sudden I got a bunch of popups that said requests failed. I doubt that specific operation caused things to fail. So I tried to log back in and now all I get is

    vSphere Client could not connect to “my-machine”.
    An unknown connection error occurred. (The request failed because the remote server took too long to respond. (The request was aborted: The operation has timed out.))

    This will be a great time saver however, if it works, thanks!

  4. Peter
    Posted December 10, 2013 at 9:11 am | Permalink

    I’ve used this and it has been very helpful. Since some configuration changes are moving to web client only, will there be a new version to sit in between the web client and vCenter? I added my web client port to the DoubleCloud proxy list but it failed.

  5. Hao
    Posted March 11, 2014 at 3:53 am | Permalink

    Really impressive~
    Also hope it will support NGC(web client) soon…

  6. Dennis Jurgensen
    Posted April 23, 2014 at 8:13 am | Permalink

    I was using double cloud proxy to look at the code for doing StorageResourceManager recommended data stores for a datastoreCluser, i.e. StoragePod. As I was going through the code I saw:
    StoragePlacementSpec storageSpec948 = new StoragePlacementSpec();
    storageSpec948.type = “clone”;
    ManagedObjectReference vm949 = new ManagedObjectReference();
    storageSpec948.vm = vm949;
    vm949.type = “VirtualMachine”;
    vm949.val = “vm-108″;
    StorageDrsPodSelectionSpec podSelectionSpec950 = new StorageDrsPodSelectionSpec();
    storageSpec948 = podSelectionSpec950;

    I believe that last line should be storageSpec948.podSelectionSpec = podSelectionSpec950;

    I like your tool, it sheds light on things that are not well documented in the sdk.

  7. Posted April 23, 2014 at 10:06 am | Permalink

    Thanks Dennis! I am sure the code generation needs a lot of improvements. :)

    Steve

  8. tom
    Posted June 2, 2014 at 5:40 pm | Permalink

    Me again.

    Now I get the following error when trying to login.

    An unknown connection error occurred. (The client received an invalid response from the server. (The server committed a protocol violation. Section=ResponseStatusLine))

    I googled and found this link: http://www.webmonkeys.org.uk/2012/09/c-the-server-committed-a-protocol-violation-sectionresponsestatusline/

    I hoped if I updated VpxClient.exe.config and added the stuff in Solution 1 that it would help. It didn’t.

    Any ideas?
    Thanks,
    Tom

  9. Bert
    Posted November 19, 2014 at 12:21 am | Permalink

    I have used this proxy, but when I try to use vSphere client to connect the proxy there is an error :
    Error returned by expat parser: not well-formed(invalid token)

    So I see the HTTP Body of POST, and there is an invalid token like this:

    

    1A41CAED-00000001

    ServiceInstance

    How to fix it?

    Thanks.

  10. Posted November 19, 2014 at 10:08 pm | Permalink

    Where did you see the error?

    Steve

  11. Bert
    Posted November 21, 2014 at 1:53 am | Permalink

    I saw this invalid token by DoubleCloud Proxy, in it’s HTTP Body tab page.

    I think I have the same problem like janez at 27.

    Any ideas?

    Thanks.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • NEED HELP?


    My consulting helps clients with virtualization and cloud computing, including VMware infrastructure automation and orchestration, vSphere management APIs, and deep product integration with hypervisors. Current training offerings include vSphere APIs training, vCenter Orchestrator training, and etc. Should you, or someone you know, need these consulting services or training, please feel free to contact me: steve __AT__ doublecloud.org.

    Me: Steve Jin, VMware vExpert who authored the VMware VI and vSphere SDK by Prentice Hall, and created the de factor open source vSphere Java API while working at VMware engineering. Companies like Cisco, EMC, NetApp, HP, Dell, VMware, are among the users of the API and other tools I developed for their products, internal IT orchestration, and test automation.