Examples of cloneOMElement()


Examples of org.apache.ws.commons.soap.SOAPBody.cloneOMElement()

                (SOAPEnvelope) OMTestUtils.getOMBuilder(
                        new File(dir, TestConstants.SOAPMESSAGE))
                        .getDocumentElement();
        SOAPBody body = soapEnvelope.getBody();

        OMElement firstClonedBodyElement = body.cloneOMElement();
        OMElement secondClonedBodyElement = body.cloneOMElement();

        // first check whether both have the same information
        assertXMLEqual(newDocument(body.toString()), newDocument(firstClonedBodyElement.toString()));
        assertXMLEqual(newDocument(body.toString()), newDocument(secondClonedBodyElement.toString()));
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.