About The Java Axis Samples - VMware VC-SRM4-A - vCenter Site Recovery Manager Developer's Manual

Site recovery manager api
Table of Contents

Advertisement

About the Java Axis Samples

The SDK includes Java sample code, batch files for Windows, and a shell script for Linux. The batch files 
require setting several environment variables. 
To build the Java Axis sample code
1
Make sure the Java development kit and Apache Axis are installed and functioning.
2
Set the environment variables as shown in Table
Table 2-2. Java and Axis environment variables
Environment Variable
AXISHOME 
JAVAHOME 
3
Start the Windows command prompt (or Linux shell).
On 64‐bit Windows systems, run C:\Windows\SysWOW64\cmd.exe so the sample programs execute 
under Windows 32‐bit on Windows 64‐bit (WOW64).
4
Navigate to the SDK\samples\Axis sub‐directory.
5
At the command prompt, type build.bat to run the build batch file. 
The build process generates the RecoveryPlan sample program, which lists all recovery plans and optionally 
gets state for the specified recovery plan.
To run the Java Axis sample code
1
After you generate the sample program, you can run the batch script as follows: 
run.bat com.vmware.samples.recovery.RecoveryPlan --url <webserviceurl> --username <user>
If you include the --ignorecert option, the sample code runs the following to get around an untrusted 
server certificate:
System.setProperty("org.apache.axis.components.net.SecureSocketFactory",
2
You can remove build files by running the clean.bat batch script. 
VMware, Inc.
Description and Usage Notes
Complete path to the top‐level Axis installation directory. 
Must be set before using the build.bat script.
Path to the binary directory for the Java JDK.
--password <passwd> --planname <planname>
"org.apache.axis.components.net.SunFakeTrustSocketFactory");
Chapter 2 SDK Installation and Setup
2‐2.
Sample Setting
C:\Apache\axis1.4
C:\Java\jdk1.5.0_08
17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vcenter site recovery manager 5.0

Table of Contents