Thanks Dan, I have written a LoggingInterceptor subclass which does the job nicely!
I'm storing the request body in a ThreadLocal which I'm then accessing later on in a DefaultValidationEventHandler subclass where I detect if validation has failed. It feels a bit hacky but I haven't yet found a cleaner way to pass my data around. I did see a suggestion of using the Exchange as a message passing mechanism however I can't find a way to access the Exchange within formatLoggingMessage(LoggingMessage loggingMessage). Any thoughts here? Thanks again! -- View this message in context: http://cxf.547215.n5.nabble.com/Handle-validation-errors-in-JAX-WS-service-and-obtain-whole-request-body-tp5758197p5758264.html Sent from the cxf-user mailing list archive at Nabble.com.
