记录axis2 客户端请求和响应 [英] Log axis2 client requests and responses

查看:48
本文介绍了记录axis2 客户端请求和响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想记录axis2 客户端发出的所有请求/响应.我尝试创建一个名为 client-config.wsdd 的文件作为 http://code.google.com/support/bin/answer.py?hl=en&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 客户端日志记录,只需在运行独立客户端时使用以下 JVM 参数或将此 VM 参数包含在您的 Appln 中.服务器启动脚本,

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

干杯,桑卡尔

这篇关于记录axis2 客户端请求和响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆