slautier
3 years agoOccasional Contributor
SoapUI 5.7.0: http wire logs missing ">>" and "<<" in request/response
Our security department requires us to use log4j 2.17 which is embedded in SoapUI 5.7.0. This requires us to upgrade our current version of SoapUI v5.2.1.
I noticed that, with SoapUI version 5.7.0, wire logs request/response are missing input/output characters "<<"/">>". E.g.:
SoapUI5.2.1> 2022-09-09 12:50:45,982 [DEBUG] +[wire] >> "POST /1ASIWQIKNHU HTTP/1.1[\r][\n]"
SoapUI5.7.0> 2022-09-09 13:38:24,657 [DEBUG] +[wire] POST /1ASIWQIKNHU HTTP/1.1
SoapUI5.2.1> 2022-09-09 12:50:46,085 [DEBUG] +[wire] >> "</soapenv:Envelope>"
SoapUI5.7.0> 2022-09-09 13:38:24,698 [DEBUG] +[wire] </soapenv:Envelope>
SoapUI5.2.1> 2022-09-09 13:51:57,627 [DEBUG] +[wire] << "Content-Length: 1667[\r][\n]"
SoapUI5.7.0> 2022-09-09 13:39:35,617 [DEBUG] +[wire] Content-Length: 1671
Our SoapUI log analyzer currently relies on those input/output characters and thus cannot do its job properly.
Instead of adapting the analyzer, I would like to find a way to have those characters back. Adding an PatternLayout in soapui-log4j.xml is my idea but I don't know if it's possible to add a condition to distinguish input from output (i.e., input -> <<, output -> >>). Or is there another way of solving this?
Any help will be greatly appreciated.