Before building the Enterprise Console Feature Option 1 samples, you must first install all the prerequisite software and set up your environment for access to all of the required class libraries. These include the Apache Axis libraries, Eclipse EMF, and Eclipse TPTP toolkit libraries.
Open the file samples/wsnt-axis/sample-axis.properties
and modify it
as follows:
AXIS_JARS_PATH=<axis_jars_directory> ECLIPSE_JARS_PATH=<eclipse_jars_directory> SERVICE_ADDRESS=<NotificationConsumerService_URL>
where
lib
directory of the Apache Axis image.Apache Axis provides a code generation tool called wsdl2java
which generates java
classes from a Web Services wsdl file.
The wsdl2java generates java classes for data formats
and client side stubs for accessing Web Services from Web Services
specifications
In this example, the wsdl2java tool is invoked trough an Apache Ant script, called build.xml. Apache Ant is a very sophisticated scripting environment and is very popular amongst Java developers.
The build.xml file in the samples directory of the SDK contains ant tasks for building the sample. To build the samples, perform the following steps.
set JAVA_HOME=<location of jdk> set ANT_HOME=<location of ant installation> cd <location of sdk installation>\samples\wsnt-axis %ANT_HOME%\bin\ant -propertyfile sample-axis.properties
export JAVA_HOME=<location of jdk> export ANT_HOME=<location of ant installation> cd <location of sdk installation>/samples/wsnt-axis $ANT_HOME/bin/ant -propertyfile sample-axis.properties
The Java class files will be generated from the wsdl file and placed in the samples/wsnt-axis/src directory. They will be compiled into directory samples/wsnt-axis/build/classes. A jar file called wsnt-axis-samples.jar of the classes is created in samples/wsnt-axis/build/lib directory.