6.0
Table Of Contents
- vSphere Web Services SDK Developer’s Setup Guide
- Contents
- About the vSphere Web Services SDK
- Knowledge Required for Using the vSphere Web Services SDK
- Programming Languages Supported by the vSphere Web Services SDK
- Types of Applications That You Can Build Using This SDK
- Downloading the vSphere Web Services SDK
- vSphere Web Services SDK Package Contents
- SDK Versions and VMware vSphere Product Compatibility
- Setting Up for Java Development
- Setting Up for Microsoft C# Development
- vSphere Server Certificates
- Scripting the C# DLL Build
- Index
vSphere Web Services SDK Developer’s Setup Guide
18 VMware, Inc.
To set up a development workstation to use C#
1 Install the Microsoft Visual programming environment, such as Microsoft Visual C# or
Microsoft Visual Studio.
Use Microsoft Visual Studio 2008 or later, which includes the required .NET Framework.
2 Obtain the Microsoft .NET Framework, if it is not included in the Microsoft Visual programming
environment.
Use .NET version 3.5 or later, depending on your Visual Studio version.
3 Download and install the Microsoft .NET Framework 2.0 SDK (x64) from
http://www.microsoft.com/en-us/download/details.aspx?id=15354
N
OTE Virtual Studio includes a version of .NET version 2.0, but that version does not contain the tools
needed to build the DLLs.
4 Find the location where the Microsoft .NET Framework 2.0 SDK (x64) files were installed. Verify that the
installation directory contains a subdirectory named Bin, which contains a file named wsdl.exe.
Typically, the Framework SDK is installed at C:\Program Files\Microsoft.NET\SDK\v2.0 64bit.
5 Edit your Windows registry to identify the location where the Microsoft .NET Framework 2.0 SDK (x64)
was installed.
a Under the key HKLM\SOFTWARE\Microsoft\.NETFramework, verify the existence of a string value
named sdkinstallRootv2.0 with a string value of the full path name to the installation directory.
bIf sdkinstallRootv2.0 is not present, add it.
6 Download and install Microsoft Web Services Enhancements (WSE) 3.0 from
http://www.microsoft.com/en-us/download/details.aspx?id=14089.
N
OTE The default option for the WSE installer includes only the runtime, not the WSDL tool. Select
another option to include the Tools directory.
7 Download and unzip the VMware vSphere Web Services SDK package from the VMware Web site at
https://developercenter.vmware.com.
Set Environment Variables To Build C# DLLs and Samples
Before you build the SDK sample programs, you must set your environment variables.
If your Microsoft software setup varies from the default paths, create a VSINSTALLDIR environment variable.
Table 3-1. Environment Variable Names Used To Build Samples
Variable Name Description Usage Note
VSINSTALLDIR Location of Microsoft ...\Common7 and
...\SDK subdirectories.
Required only if your development setup varies from
Microsoft default installation paths.
Use double quotation marks around directory path names
that include spaces. For example:
''C:\devstuff\Microsoft Visual Studio 8\Common7''
''C:\devstuff\Microsoft Visual Studio 8\SDK''
WSE_HOME Location of WSE. Directory where you installed WSE.
WS_SDK_HOME Location of the WS SDK files. Directory containing unzipped WS SDK files (usually
Location of zip file\SDK\vsphere-ws).
WSDLHOME Location of the WSDL files. Directory containing unzipped WSDL files (usually
Location of zip file\SDK\vsphere-ws\wsdl).