Phew this one was tough..but managed to solve it eventually using the following:
https://newbedev.com/apache-cxf-loggingininterceptor-is-deprecated-what-to-use-instead
https://stackoverflow.com/questions/56356503/how-to-log-soap-request-response-using-log4j2-in-separate-log-files-dynamically
And this one did the most work
https://newbedev.com/how-to-modify-the-raw-xml-message-of-an-outbound-cxf-request
In between, had to mess with Streams.. it was crazy:
https://newbedev.com/convert-outputstream-to-bytearrayoutputstream
https://stackoverflow.com/questions/5923817/how-to-clone-an-inputstream/5924132#5924132
https://stackoverflow.com/questions/33014035/write-from-output-stream-to-output-stream
Finally .. learnt alot again.
No comments:
Post a Comment