Hi Redko , Thanks a ton for the quick reply . Actually I already have gone through that link before writing to the community, but as I am very new to the cxf Interceptor so not exactly sure how it can help me.
Here is my full scenario. "I have an application consisting of bunch of services written in JAX-RS which in return gives the output in JSON. Now I have to run two different instances of this application each connecting to a different vendor of database , one is connecting with SQL Server and the other instance with IBM DB2. Now the initial ask was to capture all the http requests with all its details whatsoever was made on the instance with SQL Server and replay the captured http requests on to the other instance i.e. the one running with IBM DB2 . I achieved this by writing a custom Interceptor extended from AbstractPhaseInterceptor and inside my custom interceptor I captured all the required details created a POJO out of it and pushed that POJO to a Kakfa Topic, on the other instance the same kafka topic was been listened and the same http requests were made, the journey so far was easier. Now along with the existing details I also have to capture the http responses of those http requests so that the behavior can be tested that both of the instances are in sync and responding in the same manner. So basically in my POJO to kafka queue along with the existing details I also have to add their corresponding http responses , and that's the thing where I am stuck and seeking assistance for." Cheers Vishvesh ________________________________ From: Andriy Redko <[email protected]> Sent: Saturday, August 24, 2019 9:24 PM To: Vishvesh Yadav <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]> Subject: Re: Need help to capture both HTTP Request and its Corresponding HTTP Response inside same Interceptor Hi Vishvesh, I assume you are asking about JAX-WS/SOAP, you may find this mail thread relevant [1], thank you. [1] http://cxf.547215.n5.nabble.com/Log-incoming-message-with-the-corresponding-response-td5763314.html Best Regards, Andriy Redko VY> Hi Team, VY> I have a use case in which I have been asked to capture all HTTP Requests and their corresponding HTTP Responses inside an interceptor. VY> I referred various online links but of no use. VY> If possible can you please help me with how it can be achieved using a single apache cxf interceptor. VY> Please let me know if I am not clear with the requirement. VY> Cheers, VY> Vishvesh
