axis2肥皂记录
我已经使用 axis2 生成了 java 客户端 uisng wsdl2java。我的客户端程序可以成功连接到Web服务。我想记录传出的肥皂请求以读取肥皂消息。
有人可以指导我一篇文章,解释如何在 Axis2 中记录肥皂消息。
I have generated java clients uisng wsdl2java using axis2. My client programs can sucessfully connect to webservice. I want to log outgoing soap request to read soap message.
Can someone direct me to an article expaining how can I log soap messages in Axis2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我意识到这是一个老问题,但如果它对任何人有帮助,您可以通过将此标记放入
和
部分来打开日志记录server-config.wsdd 文件中的 globalConfig :I realize this is an old question, but in case it helps anyone you can turn on logging by putting this tag into both the
<requestFlow>
and<responseFlow>
sections of your globalConfig in your server-config.wsdd file:您还可以考虑编写自定义轴模块进行日志记录 - 检查 http:// axis.apache.org/axis2/java/core/docs/modules.html 了解更多信息
you can additionally consider writing a custom axis module for logging - check http://axis.apache.org/axis2/java/core/docs/modules.html for more information
如果您使用 Axis2 数据绑定,那么为您的 Web 服务自动生成的类都将是 ADBBean 的子类。您可以使用类似以下内容将 ADBBean 转换为字符串,然后记录该字符串。
If you're using Axis2 Data Binding, then the automatically-generated classes for your web services will all be subclasses of ADBBean. You can use something like the following to convert an ADBBean to a string, then log the string.
请参阅此处的步骤 6:Axis2 Hello world。除此之外,您还可以查看 SoapUI
Please see Step 6 here: Axis2 Hello world. Besides that, you may check SoapUI