Run the SimpleClient C#
application
You can use the SimpleClient sample
application to test your setup and connectivity.
Prerequisites To Run
the SimpleClient C# Application
Verify that the following conditions exist:
- Your development environment is set up. See Setting Up for C# Development with the Web Services SDK.
- The SSO DLL is built. See Building the C# SSO DLL for the Web Services SDK.
- The vSphere DLLs are built. See Building the C# vSphere DLLs with the Web Services SDK.
- Open a Visual Studio Tools command shell.
- 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
- 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--disablessoand--ignorecerton the command line. For example:simpleclient --url https://esx.exampledomain.com/sdk --username root --password secret --disablesso --ignorecertThe application connects to the server and displays a list of inventory objects managed by the server.Sample Output of a Successful Run of SimpleClientObject 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