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.
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.
To test the sample, perform the following steps:
samples/wsnt-axis/sample-axis.properties
file in the SDK and set the value of SERVICE_ADDRESS to be
http://adapter_hostname:8080/axis/services/NotificationConsumer10Soapor
http://adapter_hostname:8080/axis/services/NotificationConsumer13Soapfor WS-Notification 1.0 or WS-Notification 1.3, respectively
Parent topic
Apache Axis samples
Related topics
WS-Notification sample
walkthrough
Building the samples