Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Java Programming Code Examples

Java > Other Code Examples

Trace message handler

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Trace message handler package com.ack.webservices.soap.examples.lifestory; import org.apache.axis.AxisFault; import org.apache.axis.Message; import org.apache.axis.MessageContext; import org.apache.axis.handlers.BasicHandler; public class TraceMessageHandler 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 ) { } }