Running Apache Axis samples

Build the samples before running them. Ensure that you have set the value of SERVICE_ADDRESS in <sdk_install_dir>/samples/wsnt-axis/sample-axis.properties file to the URL of the NotificationConsumerService Web Services.

The <sdk_install_dir>/samples/wsnt-axis/build.xml file has a target named send.event.wsn10 which invokes the event source sample.

Steps for sending sample event

To send a hard coded event to the Web Services, perform the following commands

To send a hard-coded event to the Enterprise Console Web Services Adapter, perform the following commands:

set JAVA_HOME=<location of jdk>
set ANT_HOME=<location of ant installation>
cd <sdk_install_dir>\samples\wsnt-axis
%ANT_HOME%\bin\ant send.event.wsn10     <WS-Notification 1.0 client>
%ANT_HOME%\bin\ant send.event.wsn13     <WS-Notification 1.3 client>

export JAVA_HOME=<location of jdk>
export ANT_HOME=<location of ant installation>
cd <sdk_install_dir>/samples/wsnt-axis
$ANT_HOME/bin/ant send.event.wsn10      <WS-Notification 1.0 client>
$ANT_HOME/bin/ant send.event.wsn13      <WS-Notification 1.3 client>

This will send a hard coded event to the Web Services running in the SERVICE_ADDRESS location.

Note: The following message can be safely ignored:

[java] - Unable to find required classes (javax.activation.DataHandler and
.mail.internet.MimeMultipart). Attachment support is disabled.

Testing the sample

To test the sample, perform the following steps:

  1. Start the WebSphere Application Server instance where the Common Event Infrastructure Web Services Receiver has been installed.
  2. Modify the samples/wsnt-axis/sample-axis.properties file in the SDK and set the value of SERVICE_ADDRESS to be
    http://receiver_hostname:9080/wsnt-was/services/NotificationConsumer10Soap
    or
    http://receiver_hostname:9080/wsnt-was/services/NotificationConsumer13Soap
    for WS-Notification 1.0 or WS-Notification 1.3, respectively.
  3. Turn on Common Event Infrastructure Web Services Receiver trace
  4. Observe the messages logged by the receiver under the trace.log file for the WebSphere Application Server instance.


Parent topic
Apache Axis samples


Related topics
WS-Notification sample walkthrough
Building the samples
Starting the receiver
Enabling trace diagnostics for the receiver