Examples of toDOMDocument()


Examples of org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument()

                            checkRequest("ECHO_BOOLEAN_REQUEST", request);
                        } else {
                            documentString = ECHO_RESPONSE;
                            checkRequest("ECHO_REQUEST", request);
                        }
                        Document outDocument = converter.toDOMDocument(documentString);
                        outElements.add(outDocument.getDocumentElement());
                        // set the payload header with null
                        CxfPayload<SoapHeader> responsePayload = new CxfPayload<SoapHeader>(null, outElements);
                        exchange.getOut().setBody(responsePayload);
                    }
View Full Code Here

Examples of org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument()

                        assertIsInstanceOf(String.class, request);
                        receivedMessageStringApplyingXPath = XPathBuilder.xpath("//*[name()='arg0']/text()").evaluate(context, request, String.class);

                        //build some dummy response
                        XmlConverter converter = new XmlConverter();
                        Document outDocument = converter.toDOMDocument(ECHO_RESPONSE);
                        List<Source> outElements = new ArrayList<Source>();
                        outElements.add(new DOMSource(outDocument.getDocumentElement()));
                        // set the payload header with null
                        CxfPayload<SoapHeader> responsePayload = new CxfPayload<SoapHeader>(null, outElements, null);
                        exchange.getOut().setBody(responsePayload);
View Full Code Here

Examples of org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMDocument()

        try {
            Source content = message.getContent();
            SourceTransformer transformer = new SourceTransformer();
       
            // transform the message content to a DOM document
            Document document = transformer.toDOMDocument(content);
            document.getDocumentElement().normalize();
       
            // get the query node
            NodeList queryNode = document.getElementsByTagName("query");
            if (queryNode == null) {
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.