简体   繁体   中英

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)?

I've tried adding *=info: com.ibm.ws.websvcs.trace.*=all via HTTP admin, but no trace of any SOAP messages is found.

EDIT:

HTTP Admin (IBM Web Administrator for i) > Server Properties > Server Tracing

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). This element with the JAX-WS trace enabled on Liberty is:

<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:

Inbound Message (The Request)

Outbound Message (The Response)

The logged request/response contents will include the SOAP Message.

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

Ok, thank you very much for help.

I used Merged Trace with org.apache.cxf.*=all:com.ibm.ws.jaxws.*=all

and that worked just fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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