1 7 8 10 package org.jboss.net.axis.server; 11 12 import org.jboss.axis.AxisFault; 13 import org.jboss.axis.Message; 14 import org.jboss.axis.MessageContext; 15 import org.jboss.axis.handlers.BasicHandler; 16 17 import javax.xml.soap.SOAPEnvelope ; 18 19 34 35 public class FlashNamespaceHandler extends BasicHandler 36 { 37 42 44 48 52 56 public void invoke(MessageContext msgContext) 57 { 58 removeNamespaces(msgContext); 60 } 61 62 63 66 public void onFault(MessageContext msgContext) 67 { 68 } 70 71 72 75 protected void removeNamespaces(MessageContext msgContext) 76 { 77 Message msg = msgContext.getResponseMessage(); 78 try 79 { 80 SOAPEnvelope soapEnvelope = msg.getSOAPEnvelope(); 81 boolean result = soapEnvelope.removeNamespaceDeclaration("SOAP-ENV"); 82 } 83 catch (AxisFault e) 84 { 85 } 86 } 88 } | Popular Tags |