简体   繁体   English

如何在IBMi上运行的Liberty上启用SOAP跟踪

[英]How to enable SOAP tracing on Liberty running on IBMi

How do I enable soap tracing on Liberty(19.0.0.1) that is running on IBMi (v7r2)? 如何在IBMi(v7r2)上运行的Liberty(19.0.0.1)上启用肥皂跟踪?

I've tried adding *=info: com.ibm.ws.websvcs.trace.*=all via HTTP admin, but no trace of any SOAP messages is found. 我尝试通过HTTP admin添加*=info: com.ibm.ws.websvcs.trace.*=all ,但是未找到任何SOAP消息的痕迹。

EDIT: 编辑:

HTTP Admin (IBM Web Administrator for i) > Server Properties > Server Tracing HTTP管理员(适用于i的IBM Web Administrator)>服务器属性>服务器跟踪

Yes, I've added the asterisks but I'm new here and formatting kinda crooked it :) 是的,我已经添加了星号,但是我是新来的,格式化有点歪了:)

So there a few different ways to configure trace on Liberty, but I find adding the element to the server.xml is easiest (like one of the comments suggested). 因此,有几种不同的方法可以在Liberty上配置跟踪,但是我发现将元素添加到server.xml是最简单的(就像建议的注释之一)。 This element with the JAX-WS trace enabled on Liberty is: 在Liberty上启用了JAX-WS跟踪的该元素是:

<logging traceSpecification="com.ibm.ws.jaxws.*=all:org.apache.cxf.*=all"/>

This will print out lots of trace, but you can search for the SOAP Messages in the log files by searching for either/both: 这将打印出许多跟踪信息,但是您可以通过搜索以下两者之一来在日志文件中搜索SOAP消息:

Inbound Message (The Request) Inbound Message (请求)

Outbound Message (The Response) Outbound Message (响应)

The logged request/response contents will include the SOAP Message. 记录的请求/响应内容将包括SOAP消息。

For more info on configuring trace on Liberty check out: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/rwlp_logging.html 有关在Liberty上配置跟踪的更多信息,请访问: https : //www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/rwlp_logging.html

Ok, thank you very much for help. 好的,非常感谢您的帮助。

I used Merged Trace with org.apache.cxf.*=all:com.ibm.ws.jaxws.*=all 我将合并跟踪org.apache.cxf.*=all:com.ibm.ws.jaxws.*=all

and that worked just fine. 而且效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM