FileDocCategorySizeDatePackage
TestHandler.javaAPI DocApache Axis 1.4743Sat Apr 22 18:57:28 BST 2006test.wsdl.axis2098

TestHandler

public class TestHandler extends org.apache.axis.handlers.BasicHandler

Fields Summary
Constructors Summary
Methods Summary
public voidinvoke(org.apache.axis.MessageContext msgContext)

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
		
        try {
            msgContext.getCurrentMessage().writeTo(baos);
        } catch (Exception e) {
            throw new AxisFault("exception", e);
        }
        String msg = baos.toString();
        System.out.println("msg = " + msg);
        if (msg.indexOf("xsi:type") >= 0) {
            throw new AxisFault("message contains xsi:type");
        }