记录来自 java 服务的请求-响应
我生成了一些由 Java 服务使用的代理类。 (使用 WSDL2JAVA)
我需要找到一种方法来在代理类调用相应的外部 Web 服务时记录请求和响应。
有什么简单的方法可以实现这一目标吗?
谢谢! 西尔维奥.
I have generated some proxy classes that are consumed by a Java Service. (using WSDL2JAVA)
I need to find a way to log requests and responses whenever the proxy class invokes the respective external web service.
Is there any easy way to achieve this?
Thanks!
Silvio.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用的是 Axis,请像这样配置 log4j:
If you are using Axis, configure log4j like this:
这太棒了,您需要在 java 代码中添加以下内容。
This is awesome, you need add the following for in java code.