Package org.apache.cxf.feature

Examples of org.apache.cxf.feature.StaxTransformFeature


        public String getAddressingNamespace() {
            return "http://schemas.xmlsoap.org/ws/2004/08/addressing";
        }
        public void addVersionTransformer(Dispatch<Object> dispatch) {
            StaxTransformFeature feature = new StaxTransformFeature();
            Map<String, String> outElements = new HashMap<String, String>();
            outElements.put("{" + NS_1_1 + "}*",
                            "{" + NS_1_0 + "}*");
            outElements.put("{" + INSTANCE_1_1.getAddressingNamespace() + "}*",
                            "{" + getAddressingNamespace() + "}*");
            feature.setOutTransformElements(outElements);
           
            Map<String, String> inElements = new HashMap<String, String>();
            inElements.put("{" + NS_1_0 + "}*",
                           "{" + NS_1_1 + "}*");
            inElements.put("{" + getAddressingNamespace() + "}*",
                           "{" + INSTANCE_1_1.getAddressingNamespace() + "}*");
            feature.setInTransformElements(inElements);
           
            feature.initialize(((DispatchImpl)dispatch).getClient(),
                               ((DispatchImpl)dispatch).getClient().getBus());
           
            Map<String, String> nsMap = new HashMap<String, String>();
            nsMap.put("tns", NS_1_0);
            nsMap.put("wsa", getAddressingNamespace());
View Full Code Here

TOP

Related Classes of org.apache.cxf.feature.StaxTransformFeature

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.