1 18 package org.apache.beehive.wsm.axis.util; 19 20 import java.io.IOException ; 21 22 import javax.xml.soap.SOAPException ; 23 24 import org.apache.axis.AxisFault; 25 import org.apache.axis.MessageContext; 26 import org.apache.axis.handlers.BasicHandler; 27 28 29 public class DebugPrintMessageHandler extends BasicHandler { 30 31 34 public void invoke(MessageContext mc) throws AxisFault { 35 try { 36 System.out.println("RequestMessage....."); 37 mc.getRequestMessage().writeTo(System.out); 38 System.out.println("\n"); 39 } catch (SOAPException e) { 40 e.printStackTrace(); 41 } catch (IOException e) { 42 e.printStackTrace(); 43 } 44 45 } 46 47 } 48 | Popular Tags |