简体   繁体   中英

How to log SOAP messages of BPEL process in Apache ODE

I'm running a simple BPEL process using Apache ODE 1.3.7 (deployed in Tomcat v9.0.0) that invokes an external SOAP web service and i wanna log the SOAP messages that are been sended.

I found in other stackoverflow question (old question) a recomendation to enable this line in ode-axis2.properties file.

#ode-axis2.event.listeners=org.apache.ode.bpel.common.evt.DebugBpelEventListener

With this right now i'm able to see the response of partners links in ode.log file but im unable to see the SOAP requests messages.

Anybody knows another way to achieve that or what i'm missing?

Assuming you are using ODE 1.3.7

Add these loggers to log4j2.xml

<Logger name="httpclient.wire.content" level="debug" additivity="false">
    <AppenderRef ref="FILE"/>
</Logger>
<Logger name="httpclient.wire.header" level="debug" additivity="false">
    <AppenderRef ref="FILE"/>
</Logger>

FYI, ode-axis2.event.listeners are used to subscribe to events generated by the engine. Remember that it generated tremendous amount of events which helps for debugging processes.

ode-axis2.event.listeners=org.apache.ode.bpel.common.evt.DebugBpelEventListener

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