Hi Emil, On Mon, Feb 28, 2011 at 11:36 AM, Emil Dombagolla <[email protected]>wrote:
> Hi All, > > I am just started using axis2. using eclipse i created a web service client > project inside eclipse dynamic web project. I am consuming Hotel > Reservation Web Service. > > Since i want to make a jar file for this web service client , i put all the > libraries in to Java Project from the web project and using main methods i > get and send request response to the web service. > > It s fine and working good , finally i put my java project into jar and > then integrate to my main project. > > I want keep a log of all the request and responses going in and out via > this library. > > How i get the XML soap messages to log? > axis2 uses OMElement (adb) to do the data-binding in default. This is basically a xml structure.You can Write the OMElement object that is passed to the client in to a log. AFAIU, Axis2 engine processes the soap messages in between and send the OMElement object through to the client/ server. If you want the complete soap message that is passed, you may want to look in the axis2 source and add a line to do the logging at the transport level. Hope this helps. thanks n regards, > > > Thanks lot. > Emil > -- Supun Malinga, Software Engineer, WSO2 Inc. http://wso2.com http://wso2.org email - [email protected] <[email protected]> mobile - 071 56 91 321
