Wednesday 15 April 2015

web services - Java log request with corresponding response -



web services - Java log request with corresponding response -

i have web application interacts soap , rest external web services utilize cases client, , server other utilize cases. business requirements need log outcoming requests external systems corresponding response, , need log incoming requests corresponding response. need write list of objects this: {communicationid, timestamp, out[in], request, response}.

what best way accomplish several perspectives: 1. have code in single place if possible. 2. map request corresponding response effectively.

the best solution dependent on tooling using.

i assume have esb (such mule) in front end of web application. if so, have esb log necessary info on way in/out of app.

if have apache cxf available, utilize interceptors logging you.

as logging 'response' - mean actual object? if so, utilize jaxb convert xml , log.

java web-services logging

No comments:

Post a Comment