6.0

Table Of Contents
vSphere Web Services SDK Developer’s Setup Guide
14 VMware, Inc.
5 Create a password for the keystore by entering it at the prompt.
The keystore utility displays the certificate information at the console. For example:
Owner: OID.1.2.840.113549.1.9.2="1183400896,564d7761726520496e632e",
CN=sdkpubslab-01.vmware.com, EMAILADDRESS=ssl-certificates@vmware.com,
OU=VMware ESX Server Certificate, O="VMware, Inc.", L=Palo Alto,
ST=California, C=US Issuer:
OID.1.2.840.113549.1.9.2="1183400896,564d7761726520496e632e",
CN=sdkpubslab-01.vmware.com, EMAILADDRESS=ssl-certificates@vmware.com,
OU=VMware ESX Server Certificate, O="VMware, Inc.", L=Palo Alto,
ST=California, C=US Serial number: 0 Valid from: Mon Jul 02 11:28:17 PDT 2007
until: Mon Aug 31 11:28:17 PDT 2026
Certificate fingerprints:
MD5: . . .61:35:C0:C4
SHA1: 4C:...78:B2
At the end of the certificate information, a prompt displays a request for confirmation that the certificate
is trusted:
Trust this certificate? [no]:
6Type yes and press Enter to respond to the prompt and import the certificate into the vmware.keystore
keystore.
The console displays this message:
Certificate was added to keystore
7Repeat Step 4 through Step 6 for each target server.
Generating Stubs and Compiling Classes
The vSphere Web Services SDK includes a set of Java archive files for the sample programs. The sample .jar
files were created using JDK 1.7 and the JAX-WS Web services libraries.
Precompiled JAX-WS Samples
The JAX-WS samples include the vim25.jar and samples.jar files that were created using the JAX-WS
libraries included with JDK 1.7. These files are located in the %WS_SDK_HOME%\java\JAX-WS\lib directory.
If your development environment is using the JAX-WS libraries and JDK 1.7, you can use these precompiled
libraries. Try running the SimpleClient by following the instructions in “Running the SimpleClient Sample
Application to Validate Setup” on page 15.
Use the Included Build Scripts
If your development environment uses different versions of the JDK or client-side libraries than the ones used
for the precompiled sample files, you must regenerate the client-side stubs and recompile them to create Java
archive files. The build.bat or build.sh script included with the SDK performs all necessary tasks for you.
You must regenerate the stubs if you are using the JAX-WS libraries with a Java version other than JDK 1.7. To
use the included build scripts, the JAVAHOME environment variable must be set.
To generate stubs and compile using the build.bat or build.sh script
1 Open a command prompt.
2 Navigate to the subdirectory containing the build.bat and build.sh files.
cd %WS_SDK_HOME%\java\JAX-WS\