Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPHeader.discard()


        SOAPHeader header = envelope.getHeader();
        OMElement from = header.getFirstChildWithName(new QName("http://schemas.xmlsoap.org/ws/2004/03/addressing", "From"));
        from.getFirstElement().getFirstOMChild();
        assertFalse(from.isComplete()); // Just in case getFirstChildWithName or getFirstElement did stupid things
       
        header.discard();
        OMElement body = envelope.getFirstElement();
        assertTrue(body instanceof SOAPBody);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.