Running the sample

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.

Testing the sample

To test the sample, perform the following steps:

  1. Modify the samples/wsnt-was/sample-was.properties file in the SDK and set the value of SERVICE_ADDRESS to be
    http://adapter_hostname:8080/axis/services/NotificationConsumer10Soap
    or
    http://adapter_hostname:8080/axis/services/NotificationConsumer13Soap
    for WS-Notification 1.0 or WS-Notification 1.3, respectively
  2. Launch the Enterprise Console Web Services Adapter in development mode
  3. Run the sample and observe the adapter output on the screen.


Parent topic
WebSphere Application Server samples


Related topics
WS-Notification sample walkthrough
Building the samples