サンプルを実行する前に、サンプルをビルドしてください。<sdk_install_dir>/samples/wsnt-was/sample-was.properties
ファイルの SERVICE_ADDRESS の値を、NotificationConsumerService Web サービスの URL に設定してあることを確認してください。<sdk_install_dir>/samples/wsnt-was/build.xml
ファイルには、イベント・ソース・アプリケーションを起動する send.event.wsn10
という名前のターゲットがあります。
ハードコーディングされたイベントを Web サービスに送信するには、以下のコマンドを実行します。
cd <sdk_install_dir>\samples\wsnt-was
%WAS_HOME%\bin\ws_ant send.event.wsn10 <WS-Notification 1.0 クライアント>
%WAS_HOME%\bin\ws_ant send.event.wsn13 <WS-Notification 1.3 クライアント>
cd <sdk_install_dir>/samples/wsnt-was
$WAS_HOME/bin/ws_ant send.event.wsn10 <WS-Notification 1.0 クライアント>
$WAS_HOME/bin/ws_ant send.event.wsn13 <WS-Notification 1.3 クライアント>
このコマンドにより、ハードコーディングされたイベントが、SERVICE_ADDRESS ロケーションで稼働する Web サービスに送信されます。
サンプルをテストするには、以下のステップを実行してください。
samples/wsnt-was/sample-was.properties
ファイルを変更して、SERVICE_ADDRESS の値を以下のように設定します。
http://adapter_hostname:8080/axis/services/NotificationConsumer10Soapまたは
http://adapter_hostname:8080/axis/services/NotificationConsumer13Soap(それぞれ WS-Notification 1.0 または WS-Notification 1.3 の場合)
親トピック
WebSphere Application Server のサンプル