Examples of UnknownPersonFault


Examples of org.apache.camel.wsdl_first.UnknownPersonFault

                from(SERVICE_URI).process(new Processor() {
                    public void process(final Exchange exchange) throws Exception {
                        // set the fault message here
                        org.apache.camel.wsdl_first.types.UnknownPersonFault faultDetail = new org.apache.camel.wsdl_first.types.UnknownPersonFault();
                        faultDetail.setPersonId("");
                        UnknownPersonFault fault = new UnknownPersonFault("Get the null value of person name", faultDetail);
                        exchange.getOut().setBody(fault);
                        exchange.getOut().setFault(true);
                    }
                });
               
View Full Code Here

Examples of org.apache.camel.wsdl_first.UnknownPersonFault

                from(serviceURI).process(new Processor() {
                    public void process(final Exchange exchange) throws Exception {
                        // set the fault message here
                        org.apache.camel.wsdl_first.types.UnknownPersonFault faultDetail = new org.apache.camel.wsdl_first.types.UnknownPersonFault();
                        faultDetail.setPersonId("");
                        UnknownPersonFault fault = new UnknownPersonFault("Get the null value of person name", faultDetail);
                        exchange.getOut().setBody(fault);
                        exchange.getOut().setFault(true);
                    }
                });
               
View Full Code Here

Examples of org.apache.camel.wsdl_first.UnknownPersonFault

                from(serviceURI).process(new Processor() {
                    public void process(final Exchange exchange) throws Exception {
                        // set the fault message here
                        org.apache.camel.wsdl_first.types.UnknownPersonFault faultDetail = new org.apache.camel.wsdl_first.types.UnknownPersonFault();
                        faultDetail.setPersonId("");
                        UnknownPersonFault fault = new UnknownPersonFault("Get the null value of person name", faultDetail);
                        throw fault;
                    }
                }).to("log:myfaultlog");
               
            }
View Full Code Here

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

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

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 = 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

Examples of org.apache.servicemix.samples.wsdl_first.UnknownPersonFault

        throws UnknownPersonFault {
        if (personId.value == null || personId.value.length() == 0) {
            org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault fault =
                new org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault();
            fault.setPersonId(personId.value);
            throw new UnknownPersonFault(null, fault);
        }
        name.value = "Guillaume";
        ssn.value = "000-000-0000";
    }
View Full Code Here

Examples of org.apache.servicemix.samples.wsdl_first.UnknownPersonFault

        System.out.println("the server is invoked ");
        if (personId.value == null || personId.value.length() == 0) {
            org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault
                fault = new org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault();
            fault.setPersonId(personId.value);
            throw new UnknownPersonFault(null, fault);
        }
        name.value = "Bonjour";
        ssn.value = "000-000-0000";
    }
View Full Code Here

Examples of org.apache.servicemix.samples.wsdl_first.UnknownPersonFault

        throws UnknownPersonFault
    {
        if (personId.value == null || personId.value.length() == 0) {
            org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault fault = new org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault();
            fault.setPersonId(personId.value);
            throw new UnknownPersonFault(null,fault);
        }
        name.value = "Guillaume";
        ssn.value = "000-000-0000";
    }
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.