How to get print request and response for Apache axis log.
Many times it become necessary to print Request and Response xml of SOAP UI accessed by Apache Axis Tool. I had implemented different option to do the same.
11- By creating *.WSDD file
Refer to belwo site:-
Save this file as "client-config.wsdd" in the working directory
of your Axis client. Axis will load it automatically.
22 - Use following code in your file where you want to log the request and response.
SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
OMElement requestElement = request.getOMElement(RegisterIntegrationAgent.MY_QNAME, factory);