Hi, If I get it correctly you just need to log service request - response pair? Why not use standard CXF logging feature for that (http://cxf.apache.org/docs/debugging-and-logging.html#DebuggingandLogging-LoggingMessages)? In every message CXF writes an id, helping to bind request to corresponded response:
ID: 1 Address: http://localhost:xxxx/services/myService Http-Method: GET Content-Type: Headers: {accept-encoding=[gzip,deflate], Content-Type=[null], Host=[localhost:1 8040], User-Agent=[Jakarta Commons-HttpClient/3.1]} ID: 1 Response-Code: 200 Content-Type: application/xml Headers: {Content-Type=[application/xml], Date=[Mon, 04 May 2015 16:12:31 GMT]} Payload: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:MyElement xmlns:ns2="http://www.apache.org" ><ns2:globalStatus>SUCCESS</ns2:globalStatus><MyElement> Regards, Andrei. > -----Original Message----- > From: Sergey Maslov [mailto:[email protected]] > Sent: Freitag, 27. November 2015 09:08 > To: [email protected] > Subject: Log incoming message with the corresponding response > > Hi. > My application provides SOAP web services using CXF. I need to log incoming > request with the corresponding response from my webservice. > I've check the interceptor phases for the incoming chain but it looks like I > have > no information about outgoing message body. > Maybe I should use some observer (like message observer for the outgoing > message)? > Could you help me? > > -- > *Sergey Maslov*
