DoubleCloud Proxy

November 29th, 2016 Leave a comment Go to comments

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

Download and Setup

Time to learn how to "Google" and manage your VMware and clouds in a fast and secure

HTML5 App

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.

  1. September 20th, 2013 at 05:20 | #1

    impressive

  2. Nate
    October 2nd, 2013 at 02:10 | #2

    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
    November 20th, 2013 at 18:44 | #3

    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
    December 10th, 2013 at 09:11 | #4

    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
    March 11th, 2014 at 03:53 | #5

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

  6. Dennis Jurgensen
    April 23rd, 2014 at 08:13 | #6

    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. April 23rd, 2014 at 10:06 | #7

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

    Steve

  8. tom
    June 2nd, 2014 at 17:40 | #8

    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
    November 19th, 2014 at 00:21 | #9

    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. November 19th, 2014 at 22:08 | #10

    Where did you see the error?

    Steve

  11. Bert
    November 21st, 2014 at 01:53 | #11

    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.

  12. Alex
    March 21st, 2015 at 00:21 | #12

    Doublecloud Proxy run in vsphere5.5,show error”Error returned by expat parser: not well-formed (invalid token)” from vsphere client;

  13. Vrushank
    April 9th, 2015 at 21:14 | #13

    Hi,

    I am using double cloud for the first time. I provided my vCenter IP to host name and with the same IP i logged in the vCenter Server, but unfortunately nothing gets recorded.
    please help.

    Thanks.

  14. Cody
    June 10th, 2015 at 08:58 | #14

    Hi,
    I am using this tool to connect to my esxi host.
    I have given the ESXI host name in the tool. But once I login to my vSphere CLient using https://127.0.0.1:1545 and credentials, and try to open the console, I get an error SSL thumbprint mismatch. Please help.

    Should I give the same hostname even in vSphere that I gave in the tool. Or just 127.0.0.1:1545.

  15. Dave
    August 13th, 2015 at 09:21 | #15

    This tool became indispensable for my automation development work. Thanks!

  16. August 14th, 2015 at 19:22 | #16

    Glad to know it. Thanks for sharing!

    Steve

  17. bigfun
    February 15th, 2016 at 20:36 | #17

    I have similar issues as others mentioned before – invalid token returned by vcenter.
    Connection works properly when connecting directly to vcenter, so this must be caused by the proxy.

    when looking at the “raw” tab for a POST request to /sdk, I can indeed some binary string in the body, just at the start of it (after headers). See screenshot below:

    https://www.dropbox.com/s/j02hspietcrropz/Screenshot%202016-02-15%2017.34.34.png?dl=0

    I’m using JRE8 and win 7 32bit, and vsphere 5.5

  18. Wotsa
    July 17th, 2017 at 17:26 | #18

    This tool has been very helpful to me. Thank you.

    Really in need of something similar for Web Client!!!

  19. July 17th, 2017 at 22:36 | #19

    Thanks for the comment! Glad to know. The Web Client is phasing out, but the new HTML5 can get you all via browser.

Comment pages
1 2 2814
  1. February 1st, 2012 at 03:12 | #1
  2. February 8th, 2012 at 15:24 | #2
  3. August 29th, 2012 at 14:15 | #3
  4. October 24th, 2012 at 00:07 | #4
  5. June 27th, 2014 at 10:16 | #5
  6. October 19th, 2014 at 00:30 | #6
  7. June 3rd, 2015 at 01:53 | #7
  8. February 15th, 2017 at 22:23 | #8
  9. June 8th, 2017 at 10:02 | #9