Package org.apache.servicemix.soap.util.stax

Examples of org.apache.servicemix.soap.util.stax.DOMStreamReader


            if (message.getSoapHeaders().size() > 0) {
                StaxUtil.writeStartElement(writer, soapVersion.getHeader());
                for (Iterator it = message.getSoapHeaders().values().iterator(); it.hasNext();) {
                    DocumentFragment df = (DocumentFragment) it.next();
                    Element e = DomUtil.getFirstChildElement(df);
                    StaxUtil.copy(new DOMStreamReader(e), writer);
                }
                writer.writeEndElement();
            }
            // Write Body
            StaxUtil.writeStartElement(writer, soapVersion.getBody());
View Full Code Here


    public void handleMessage(Message message) {
        try {
            XMLStreamReader reader;
            Document doc = message.getContent(Document.class);
            if (doc != null) {
                reader = new DOMStreamReader(doc.getDocumentElement());
            } else {
                InputStream is = message.getContent(InputStream.class);
                if (is != null) {
                    // TODO: where does encoding constant go?
                    String encoding = (String) message.get(ENCODING);
View Full Code Here

TOP

Related Classes of org.apache.servicemix.soap.util.stax.DOMStreamReader

Copyright © 2018 www.massapicom. 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.