Build the samples before
running them. Ensure that you have set the value of SERVICE_ADDRESS in <sdk_install_dir>/samples/wsnt-was/sample-was.properties
file to the URL of the NotificationConsumerService Web Services. The <sdk_install_dir>/samples/wsnt-was/build.xml
file has a target named send.event.wsn10
which invokes the
EventSource application.
To send a hard coded event to the Web Services, perform the following commands:
cd <sdk_install_dir>\samples\wsnt-was
%WAS_HOME%\bin\ws_ant send.event.wsn10 <WS-Notification 1.0 client>
%WAS_HOME%\bin\ws_ant send.event.wsn13 <WS-Notification 1.3 client>
cd <sdk_install_dir>/samples/wsnt-was
$WAS_HOME/bin/ws_ant send.event.wsn10 <WS-Notification 1.0 client>
$WAS_HOME/bin/ws_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.
To test the sample, perform the following steps:
samples/wsnt-was/sample-was.properties
file
in the SDK and set the value of SERVICE_ADDRESS to be
http://receiver_hostname:9080/wsnt-was/services/NotificationConsumer10Soapor
http://receiver_hostname:9080/wsnt-was/services/NotificationConsumer13Soapfor WS-Notification 1.0 or WS-Notification 1.3, respectively.
trace.log
file for the WebSphere Application Server instance.Parent topic
WebSphere Application Server samples
Related topics
WS-Notification sample
walkthrough
Building the samples
Starting the
receiver
Enabling trace
diagnostics for the receiver