Util Java

package com.ack.webservices.soap;
import org.apache.axis.AxisFault;
import org.apache.axis.Message;
import org.apache.axis.MessageContext;
import org.apache.axis.handlers.BasicHandler;
/**
* create an axis handler to output the contents of the message
* to the stdout
*/
public class TraceMessageAxisHandler extends BasicHandler {
public void invoke( MessageContext msgContext ) throws AxisFault {
try {
System.out.println( "\n=========== trace message on " +
java.util.Calendar.getInstance().getTime()
+ " =====================" );
Message msg = msgContext.getCurrentMessage();
msg.writeTo( System.out );
System.out.println( "\n=================================================" );
}
catch( Exception e ) {
throw AxisFault.makeFault( e );
}
}
public void undo( MessageContext msgContext ) {
}
}