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
VMware, Inc. 11
2
This chapter explains how to set up an environment to develop Java clients.
This chapter includes these topics:
“Java Development Requirements” on page 11
“Set Up for Java Development” on page 11
“Running the SimpleClient Sample Application to Validate Setup” on page 15
Java Development Requirements
Developing Java Web-services client applications using the VMware vSphere Web Services SDK requires the
Java SDK and a Java Web services development toolset. For best results, use Java 2, Standard Edition, version
7.0 (J2SE 1.7.x), specifically JDK 1.7 or later.
The Java Web services development toolset must be a SOAP implementation that can be deployed to a Tomcat
server. For example, you can use the client-side libraries in JAX-WS version 2.1. The JAX-WS 2.1 libraries are
included with the JDK 1.7.
You can use other client-side tools and libraries, such as IBM WebSphere and several open source
implementations, with the vSphere Web Services SDK. However, only the JAX-WS client libraries were tested
with this guide.
The samples archive, in samples.jar, includes all vSphere Web Services SDK samples. The samples include
client-side stub classes generated using the JAX-WS libraries. Samples using JAX-WS were generated using
JDK 1.7.
N
OTE If you are not using JDK 1.7, you must use the build.bat on Windows, or the build.sh on Linux, to
generate stubs and compile the sample files (vim25.jar and samples.jar). The build scripts perform all
necessary tasks for you, including setting the CLASSPATH and PATH environment variables. See “Generating
Stubs and Compiling Classes” on page 14 for details.
Set Up for Java Development
Specific setup instructions depend on whether your development workstation already meets some or all of the
requirements, which client-side Web service library you plan to use, and whether you plan to use the provided
samples. Specific setup instructions also depend on whether your target server uses the HTTPS protocol or
HTTP.
Software Downloads
You can obtain the software you need for Java client development from the following Web sites:
The J2SE is available from http://www.oracle.com. For best results, use JDK 1.7 or later.
Setting Up for Java Development
2