SOAP Monitor Installation
(also see: http://www.sosnoski.com/presents/java-xml/axis/axis-monitor.html )
1) compile { { { SOAPMonitorApplet.java } } } {{{ cd $TOMCAT/webapps/axis
- javac -classpath WEB-INF/lib/axis.jar { { { ["SOAPMonitorApplet"].java } } } }}}
2) Various { { { SOAPMonitorApplet*.class } } } files should now be in the axis webapp root (e.g. tomcat4/webapps/axis).
3) add soapmonitor handlers to the request and response handler chains in the axis server-config.wsdd (e.g. tomcat4/webapps/axis/WEB-INF/server-config.wsdd)
<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>
- }}}
This will monitor all SOAP messages; add the requestFlow and responseFlow elements to individual services to target monitoring.
4) Deploy the { { { SOAPMonitorService } } } using the following deployment descriptor:
<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) make sure { { { SOAPMonitorService } } } servlet is mapped in webapp config file (e.g. tomcat4/webapps/axis/WEB-INF/web.xml)
6) restart application server (tomcat)
Now the SOAPMonitor applet should be available at http://127.0.0.1:8080/axis/SOAPMonitor