Package org.apache.camel.component.cxf

Examples of org.apache.camel.component.cxf.CxfMessage


   
    // START SNIPPET: SOAPHeaderProcessors

    public static class InsertRequestOutHeaderProcessor implements Processor {
        public void process(Exchange exchange) throws Exception {
            CxfMessage message = exchange.getIn().getBody(CxfMessage.class);
            Message cxf = message.getMessage();
            List<SoapHeader> soapHeaders = (List)cxf.get(Header.HEADER_LIST);

            // Insert a new header
            String xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><outofbandHeader "
                + "xmlns=\"http://cxf.apache.org/outofband/Header\" hdrAttribute=\"testHdrAttribute\" "
View Full Code Here


        }
    }
   
    public static class InsertResponseOutHeaderProcessor implements Processor {
        public void process(Exchange exchange) throws Exception {
            CxfMessage message = exchange.getIn().getBody(CxfMessage.class);
            Map responseContext = (Map)message.getMessage().get(Client.RESPONSE_CONTEXT);
            List<SoapHeader> soapHeaders = (List)responseContext.get(Header.HEADER_LIST);
           
            // Insert a new header
            String xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><outofbandHeader "
                + "xmlns=\"http://cxf.apache.org/outofband/Header\" hdrAttribute=\"testHdrAttribute\" "
View Full Code Here

TOP

Related Classes of org.apache.camel.component.cxf.CxfMessage

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.