Run the SimpleClient C# application

You can use the SimpleClient sample application to test your setup and connectivity.

Prerequisites

Prerequisites To Run the SimpleClient C# Application

Verify that the following conditions exist:

Procedure

  1. Open a Visual Studio Tools command shell.
  2. Navigate to the subdirectory where the compiled object code is located.
    From the top-level directory of the SDK download, the directory is as follows:

    path_to_sdk\dotnet\cs\samples\SimpleClient\bin\Debug

  3. Run the application, passing at least the service URL, an authenticating user name, and a password on the command line.
    For a development environment, you do not need to use SSO or certificate authentication. You can authenticate directly with the server by specifying --disablesso and --ignorecert on the command line. For example:
    simpleclient --url https://esx.exampledomain.com/sdk --username root --password secret 
                 --disablesso --ignorecert

    The application connects to the server and displays a list of inventory objects managed by the server.

    Sample Output of a Successful Run of SimpleClient

    Object Type : Datacenter
    Reference Value : ha-datacenter
       Property Name : name
       Property Value : ha-datacenter
    Object Type : Folder
    Reference Value : ha-folder-root
       Property Name : name
       Property Value : ha-folder-root