Search code examples
soapibm-midrangewebsphere-liberty

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


Solution

  • 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