Setting Up for Java
Development
To develop a Web Services client in Java, you must first set up a
development environment. This chapter explains how to set up an environment to develop Java
clients.
Java Development Requirements for the Web Services SDK 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 the Java platform Standard Edition (SE) version 11. Java SE includes both the runtime environment (JRE) and the development kit (JDK).Set Up for Java Development for the Web Services SDK 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. Generating Stubs and Compiling Classes for the Web Services SDK The vSphere Web Services SDK includes a set of Java archive files for the sample programs. The sample .jar files were created using the JAX-WS Web services libraries. Running the Web Services SDK SimpleClient Sample Application to Validate Setup You can test your setup and connectivity by running one of the sample applications, such as SimpleClient. SimpleClient is a Java class that connects to the server and obtains a listing of the top-level inventory entities, their properties, and references. You can run any of the samples using the run.bat (or run.sh ) script.