记录axis2客户端请求和响应 [英] Log axis2 client requests and responses
问题描述
我想记录axis2客户端发出的所有请求/响应。
我试图在 client-config.wsdd 的文件作为描述符/answer.py?hl=zh-CN&answer=15137\"rel =noreferrer> http://code.google.com/support/bin/answer.py?hl=zh-CN&answer=15137 但没有成功(我没有得到日志文件)。
I would like to log all requests/responses made by an axis2 client.
I tried to create a file called client-config.wsdd
as describer in http://code.google.com/support/bin/answer.py?hl=en&answer=15137 but without success (I don't get a log file).
请求是通过https进行的,我不确定是否重要。我试过
Requests are made over https and I am not sure if it matters. I tried
<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
和
<transport name="https" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
没有成功。
推荐答案
对于SOAP消息的Axis2-client端日志记录,只需在运行独立客户端时使用以下JVM参数,或在Appln中包含此VM args。服务器启动脚本,
For Axis2-client side logging for SOAP messages, just use the following JVM arguments while running your standalone client or include this VM args in your Appln. Server start script,
JAVA_OPTS=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.httpclient.wire=debug -Dorg.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=debug
C:\ java%JAVA_OPTS%YourClientAppln.java
C:\java %JAVA_OPTS% YourClientAppln.java
干杯,
Sankar
Cheers, Sankar
这篇关于记录axis2客户端请求和响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!