You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by Apache Wiki <wi...@apache.org> on 2005/04/04 13:03:45 UTC

[Ws Wiki] Update of "ja/axis/SoapMonitor" by ToshiyukiKimura

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.

The following page has been changed by ToshiyukiKimura:
http://wiki.apache.org/ws/ja/axis/SoapMonitor

The comment on the change is:
Axis Wiki in Japanese

New page:
##language:ja

'''質問: どのようにして SOAP モニタを有効にするのですか?'''

'''SOAP Monitor インストール'''
(http://www.sosnoski.com/presents/java-xml/axis/axis-monitor.html もご覧下さい)

1) SOAPMonitorApplet.java をコンパイルします。
{{{
   cd $TOMCAT/webapps/axis
   javac -classpath WEB-INF/lib/axis.jar SOAPMonitorApplet.java
}}}
2) webapp ルート (例えば tomcat4/webapps/axis) の中に様々な{{{SOAPMonitorApplet*.class}}}ファイルがあるはずです。

3) server-config.wsdd{{{(例えば tomcat4/webapps/axis/WEB-INF/server-config.wsdd)}}}の中でリクエストとレスポンスハンドラチェインに soapmonitor ハンドラを追加します。
{{{
<globalConfiguration>
  <requestFlow>
    <handler name="soapmonitor" type="java:org.apache.axis.handlers.SOAPMonitorHandler"/>
    ... any existing configuration ...
  </requestFlow>
  <responseFlow>
    <handler name="soapmonitor" type="java:org.apache.axis.handlers.SOAPMonitorHandler"/>
    ... any existing configuration ...
  </responseFlow>
</globalConfiguration>
}}}

これにより全ての SOAP メッセージをモニタします。対象別のモニタリングを行うには、特定のサービスに対して{{{requestFlow}}}と{{{responseFlow}}}要素を追加します。

4) 以下のデプロイメントディスクリプタを使用して{{{SOAPMonitorService}}}をデプロイします。

{{{
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
  <service name="SOAPMonitorService" provider="java:RPC">
    <parameter name="allowedMethods" value="publishMessage"/>
    <parameter name="className"
      value="org.apache.axis.monitor.SOAPMonitorService"/>
    <parameter name="scope" value="Application"/>
  </service>
</deployment>
}}}

5) {{{SOAPMonitorService}}}サーブレットが webapp 設定ファイルでマッピングされているか確認してください。
   {{{(例えば tomcat4/webapps/axis/WEB-INF/web.xml)}}}

6) アプリケーションサーバ (tomcat) を再起動してください

これで{{{SOAPMonitor}}}アプレットは{{{http://127.0.0.1/axis/SOAPMonitor}}}で利用可能なはずです。