Examples of GetPersonResponse


Examples of org.apache.camel.non_wrapper.types.GetPersonResponse

                    public void process(Exchange exchange) throws Exception {
                        // just try to turn the payload to the parameter we want
                        // to use
                        GetPerson request = exchange.getIn().getBody(GetPerson.class);

                        GetPersonResponse reply = new GetPersonResponse();
                        reply.setPersonId(request.getPersonId());
                        exchange.getOut().setBody(reply);
                    }

                });
            }
View Full Code Here

Examples of org.apache.camel.non_wrapper.types.GetPersonResponse

        }
    }

    private class AfterProcessor implements Processor {
        public void process(Exchange e) throws Exception {
            GetPersonResponse gpr = new GetPersonResponse();
            gpr.setName("Bill");
            gpr.setPersonId(e.getOut().getBody(String.class));
            gpr.setSsn("Test");

            MessageContentsList mclOut = new MessageContentsList();
            mclOut.set(0, gpr);
            e.getOut().setBody(mclOut, MessageContentsList.class);
        }
View Full Code Here

Examples of org.apache.servicemix.samples.wsdl_first.types.GetPersonResponse

        if (personId == null || personId.length() == 0) {
            org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault fault = new org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault();
            fault.setPersonId(personId);
            throw new UnknownPersonFault(null, fault);
        }
        GetPersonResponse response = new GetPersonResponse();
        response.setPersonId(payload.getPersonId());
        response.setName("Guillaume");
        response.setSsn("000-000-0000");
        return response;
    }
View Full Code Here

Examples of org.apache.servicemix.samples.wsdl_first.types.GetPersonResponse

        if (personId == null || personId.length() == 0) {
            org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault fault = new org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault();
            fault.setPersonId(personId);
            throw new UnknownPersonFault(null, fault);
        }
        GetPersonResponse response = new GetPersonResponse();
        response.setPersonId(payload.getPersonId());
        response.setName("Guillaume");
        response.setSsn("000-000-0000");
        return response;
    }
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.