Package org.apache.camel.wsdl_first.types

Examples of org.apache.camel.wsdl_first.types.UnknownPersonFault


                    public void process(final Exchange exchange) throws Exception {
                        JAXBContext context = JAXBContext.newInstance("org.apache.camel.wsdl_first.types");
                        QName faultCode = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Server");
                        SoapFault fault = new SoapFault("Get the null value of person name", faultCode);
                        Element details = DOMUtils.readXml(new StringReader(DETAILS)).getDocumentElement();
                        UnknownPersonFault unknowPersonFault = new UnknownPersonFault();
                        unknowPersonFault.setPersonId("");
                        context.createMarshaller().marshal(unknowPersonFault, details);
                        fault.setDetail(details);
                        exchange.getOut().setBody(fault);
                        exchange.getOut().setFault(true);
                    }
View Full Code Here


                    public void process(final Exchange exchange) throws Exception {
                        JAXBContext context = JAXBContext.newInstance("org.apache.camel.wsdl_first.types");
                        QName faultCode = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Server");
                        SoapFault fault = new SoapFault("Get the null value of person name", faultCode);
                        Element details = DOMUtils.readXml(new StringReader(DETAILS)).getDocumentElement();
                        UnknownPersonFault unknowPersonFault = new UnknownPersonFault();
                        unknowPersonFault.setPersonId("");
                        context.createMarshaller().marshal(unknowPersonFault, details);
                        fault.setDetail(details);
                        exchange.getOut().setBody(fault);
                        exchange.getOut().setFault(true);
                    }
View Full Code Here

                    public void process(final Exchange exchange) throws Exception {
                        JAXBContext context = JAXBContext.newInstance("org.apache.camel.wsdl_first.types");
                        QName faultCode = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Server");
                        SoapFault fault = new SoapFault("Get the null value of person name", faultCode);
                        Element details = StaxUtils.read(new StringReader(DETAILS)).getDocumentElement();
                        UnknownPersonFault unknowPersonFault = new UnknownPersonFault();
                        unknowPersonFault.setPersonId("");
                        context.createMarshaller().marshal(unknowPersonFault, details);
                        fault.setDetail(details);
                        exchange.getOut().setBody(fault);
                        exchange.getOut().setFault(true);
                    }
View Full Code Here

TOP

Related Classes of org.apache.camel.wsdl_first.types.UnknownPersonFault

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.