Version
4.0
This code works with the Java 1.5 SDK/JRE. To build and run the code,
you'll need to do the following:
1. Download axis from
http://ws.apache.org/axis/
. This provides the
WSDL to Java converter. Copy all the .jar files from
axis /libs/ to the JAVAHOME/jre/lib/ext/ directory, or
add them to your CLASSPATH.
2. Install the Java Activation Framework and JavaMail libraries to avoid
warnings when the code is run:
o Java Activation Framework
http://java.sun.com/products/javabeans/glasgow/jaf.html
o JavaMail
http://java.sun.com/products/javamail/
Copy the activation.jar and mail.jar files contained in these
packages to the JAVAHOME/jre/lib/ext/ directory, or add them to
your CLASSPATH.
3. In your build directory, convert the required WSDL files into java
code as follows
4
:
$ java org.apache.axis.wsdl.WSDL2Java VirtualServer.wsdl
4. Compile and run the example as follows:
$ javac listVS.java
$ java listVS
Main website
Mail servers
Test site
4
The WSDL interface specifications for the ZXTM Control API are located in
ZEUSHOME/zxtm/etc/wsdl/.
25
New Page 1