Run Java Axis Sample
Code
Source code build
files are located in the
samples/Axis/java
directory, as extracted from the ZIP archive.
- Change directory tosdk/samples/JAXWS, where the JAR files are located, if you are not already there, and setCLASSPATH. Example settings for Linux and Windows areexport CLASSPATH=/usr/lib/jvm/java-7-openjdk-i386/libandset CLASSPATH=%JAVAHOME%\libSometimesCLASSPATHhas already been set system wide.
- DefineVMKEYSTOREas the path to the Java key store. This is needed to securely access aSite Recovery ManagerServer,export VMKEYSTORE=/usr/share/mime/application/x-java-keystore.xmlandset VMKEYSTORE=C:\cygwin\usr\share\mime\application\x-java-keystore.xml
- After you build the sample program, you can call it with the run script as follows,run.sh com.vmware.samples.recovery.RecoveryPlanList --url <srm-URL> --username <user> --password <passwd>If you include the--ignorecertoption, the sample code runs the following to get around an untrusted server certificate:System.setProperty("org.apache.axis.components.net.SecureSocketFactory", "org.apache.axis.components.net.SunFakeTrustSocketFactory");