Reputation: 7511
We need to log all incoming SOAP requests, preferably by persisting to a DB as we have identifying properties that we'd like to associate with it. Is there any way of getting the raw XML data in Spring?
Upvotes: 0
Views: 1084
Reputation: 124632
I suggest you take a look at the source for SoapEnvelopeLoggingInterceptor
and/or PayloadLoggingInterceptor
. You can probably modify this to include what you want.
Another solution could be to put a servlet Filter
in front of everything that puts the identifying properties into the MDC (assuming you are using SLF4J and/or Log4j/Logback) that way you could configure a jdbc backed Appender which logs to the database.
Upvotes: 1