在axis1.2beta的Installation Instructions文档中讲到了这个,Appendix: Enabling the SOAP Monitor.
按照里面的说明把SOAPMonitor服务起起来,然后使用samples下的stock例子,修改它的deploy.wsdd中cominfo服务的部分如下:
<service name="urn:cominfo" provider="java:RPC">
<parameter name="className" value="samples.stock.ComInfoService" />
<parameter name="allowedMethods" value="getInfo" />
<parameter name="allowedRoles" value="user3"/>
<!-- 增加的部分,好像必须在下面的requestFlow前面???否则soapmonitor收不到包 -->
<requestFlow>
<handler type="soapmonitor"/>
</requestFlow>
<responseFlow>
<handler type="soapmonitor"/>
</responseFlow>
<!-- 增加的部分 -->
<requestFlow type="checks"/>
</service>
然后运行
java samples.stock.GetInfo -l
http://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 IBM name
如果返回正常结果的话,在soapmonitor上就能看到你想看的东西了。
【 在 Quinn (昂藏敖曹) 的大作中提到: 】
: applet能看到
: 我的意思是没有能够看到任何传送的信息啊
--
FROM 202.108.130.*