I have a web service which contains getEmployeeList method and i need to log request and response in a database like;
***Column** **Id Request Response ResponseTime*** 1 Request1 Response1 600ms 2 Request2 Response2 400ms My employee service class;
@WebService @HandlerChain(file="employeehandler-chain.xml") public interface EmployeeWS { @WebMethod List<Employee> getEmployeeList( @WebParam(name = " EmployeeReq") EmployeeReq employeeReq); My custom handler class ;
public class EmployeeHandler implements SOAPHandler<SOAPMessageContext> { @Override public boolean handleMessage(SOAPMessageContext context) { Boolean outBound = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY); try { SOAPMessage soapMsg = context.getMessage(); Is there a way to correlate the request and response in my handler ?