Examples of GetPerson


Examples of br.com.visualmidia.persistence.GetPerson

                    item2.setText(10, parcel.getPaymentType());
                }
                if(parcel.getIdPersonReceived() != null) {
          Person person;
          try {
            person = (Person) system.query(new GetPerson(parcel.getIdPersonReceived()));
            item2.setText(12, person.getName());
          } catch (Exception e) {
          }
         
        } else {
View Full Code Here

Examples of br.com.visualmidia.persistence.GetPerson

    }

    @SuppressWarnings("unchecked")
  public void loadScreen(String id) {
        try {
            Person person = (Person) system.query(new GetPerson(id));
            registrations = (List <Registration>) system.query(new GetRegistrationByPerson(person.getId()));
           
            nameText.setText(person.getName());
            idText.setText(person.getId());
           
View Full Code Here

Examples of br.com.visualmidia.persistence.GetPerson

        return null;
    }

    public void loadScreen(String id) {
        try {
            Person person = (Person) system.query(new GetPerson(id));
            idText.setText(person.getId());
            nameText.setText(person.getName());
           
            loadTableData(person);
        } catch (Exception e) {
View Full Code Here

Examples of br.com.visualmidia.persistence.GetPerson

  }

  @Override
  public void loadScreen(String idStudent) {
    try {
      Person person = (Person) system.query(new GetPerson(idStudent));
      fillName(person.getName());
            updateRegistrationTable(person);
    } catch (Exception e) {
      logger.error("GetPersonByName Error:", e);
    }
View Full Code Here

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

        BindingOperationInfo boi = (BindingOperationInfo)exchange.getProperty(BindingOperationInfo.class.toString());
        if (boi != null) {
            LOG.info("boi.isUnwrapped" + boi.isUnwrapped());
        }

        GetPerson person =  exchange.getIn().getBody(GetPerson.class);
        String personId = person.getPersonId();
        GetPersonResponse response = new GetPersonResponse();

        if (personId == null || personId.length() == 0) {
            LOG.info("person id 123, so throwing exception");
            // Try to throw out the soap fault message
View Full Code Here

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

        BindingOperationInfo boi = (BindingOperationInfo)exchange.getProperty(BindingOperationInfo.class.toString());
        if (boi != null) {
            LOG.info("boi.isUnwrapped" + boi.isUnwrapped());
        }

        GetPerson person =  exchange.getIn().getBody(GetPerson.class);
        String personId = person.getPersonId();
        GetPersonResponse response = new GetPersonResponse();

        if (personId == null || personId.length() == 0) {
            LOG.info("person id 123, so throwing exception");
            // Try to throw out the soap fault message
View Full Code Here

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

    public void testInvokingServiceFromCXFClient() throws Exception {

        URL wsdlURL = getClass().getClassLoader().getResource("person-non-wrapper.wsdl");
        PersonService ss = new PersonService(wsdlURL, new QName("http://camel.apache.org/non-wrapper", "PersonService"));
        Person client = ss.getSoap();
        GetPerson request = new GetPerson();
        request.setPersonId("hello");
        GetPersonResponse response = client.getPerson(request);

        assertEquals("we should get the right answer from router", "Bonjour", response.getName());

        request.setPersonId("");
        try {
            client.getPerson(request);
            fail("We expect to get the UnknowPersonFault here");
        } catch (UnknownPersonFault fault) {
            // We expect to get fault here
View Full Code Here

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

    public void testCamel1145Route() throws Exception {
        URL wsdlURL = new URL("http://localhost:9000/PersonService/?wsdl");
        PersonService ss = new PersonService(wsdlURL, new QName("http://camel.apache.org/non-wrapper", "PersonService"));
        Person client = ss.getSoap();
        GetPerson request = new GetPerson();
        request.setPersonId("hello");
        GetPersonResponse response = client.getPerson(request);

        assertEquals("we should get the right answer from router", "Bill", response.getName());
        assertEquals("we should get the right answer from router", "Test", response.getSsn());
        assertEquals("we should get the right answer from router", "hello world!", response.getPersonId());
View Full Code Here

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

        BindingOperationInfo boi = (BindingOperationInfo)exchange.getProperty(BindingOperationInfo.class.toString());
        if (boi != null) {
            LOG.info("boi.isUnwrapped" + boi.isUnwrapped());
        }

        GetPerson person =  exchange.getIn().getBody(GetPerson.class);
        String personId = person.getPersonId();
        GetPersonResponse response = new GetPersonResponse();

        if (personId == null || personId.length() == 0) {
            LOG.info("person id 123, so throwing exception");
            // Try to throw out the soap fault message
View Full Code Here

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

    public void testInvokingServiceFromCXFClient() throws Exception {

        URL wsdlURL = getClass().getClassLoader().getResource("person-non-wrapper.wsdl");
        PersonService ss = new PersonService(wsdlURL, new QName("http://camel.apache.org/non-wrapper", "PersonService"));
        Person client = ss.getSoap();
        GetPerson request = new GetPerson();
        request.setPersonId("hello");
        GetPersonResponse response = client.getPerson(request);

        assertEquals("we should get the right answer from router", "Bonjour", response.getName());

        request.setPersonId("");
        try {
            client.getPerson(request);
            fail("We expect to get the UnknowPersonFault here");
        } catch (UnknownPersonFault fault) {
            // We expect to get fault here
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.