I have generated java clients uisng wsdl2java using axis2. My client programs can sucessfully connect to webservice. I want to log outgoing soap request to read soap message.
Can someone direct me to an article expaining how can I log soap messages in Axis2.
If you're using Axis2 Data Binding, then the automatically-generated classes for your web services will all be subclasses of ADBBean. You can use something like the following to convert an ADBBean to a string, then log the string.
I realize this is an old question, but in case it helps anyone you can turn on logging by putting this tag into both the
<requestFlow>
and<responseFlow>
sections of your globalConfig in your server-config.wsdd file:Please see Step 6 here: Axis2 Hello world. Besides that, you may check SoapUI
you can additionally consider writing a custom axis module for logging - check http://axis.apache.org/axis2/java/core/docs/modules.html for more information