use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.Name in project jbossws-cxf by jbossws.
the class JAXWSBenchmarkComplex method getJohnDoe.
private Customer getJohnDoe(int r) {
Name name = new Name();
name.setFirstName("John");
name.setLastName("Doe");
Address address = new Address();
address.setCity("New York");
address.setState("New York");
address.setZip("10010");
address.setStreet("Park Street");
PhoneNumber number1 = new PhoneNumber();
number1.setAreaCode("555");
number1.setExchange("867");
number1.setLine("5309");
Customer customer = new Customer();
customer.setName(name);
customer.setAddress(address);
customer.getContactNumbers().add(number1);
customer.setId(r);
return customer;
}
use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.Name in project jbossws-cxf by jbossws.
the class ComplexTest method getJohnDoe.
private Customer getJohnDoe() {
Name name = new Name();
name.setFirstName("John");
name.setLastName("Doe");
Address address = new Address();
address.setCity("New York");
address.setState("New York");
address.setZip("10010");
address.setStreet("Park Street");
PhoneNumber number1 = new PhoneNumber();
number1.setAreaCode("555");
number1.setExchange("867");
number1.setLine("5309");
Customer customer = new Customer();
customer.setName(name);
customer.setAddress(address);
customer.getContactNumbers().add(number1);
customer.setId(124);
return customer;
}
use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.Name in project jbossws-cxf by jbossws.
the class ComplexTest method getInvoiceFredJackson.
private InvoiceCustomer getInvoiceFredJackson() {
Name name = new Name();
name.setFirstName("Fred");
name.setMiddleName("Jones");
name.setLastName("Jackson");
Address address = new Address();
address.setCity("Atlanta");
address.setState("Georgia");
address.setZip("53717");
address.setStreet("Yet Another Peach Tree St.");
PhoneNumber number1 = new PhoneNumber();
number1.setAreaCode("123");
number1.setExchange("456");
number1.setLine("7890");
PhoneNumber number2 = new PhoneNumber();
number1.setAreaCode("333");
number1.setExchange("222");
number1.setLine("1234");
InvoiceCustomer customer = new InvoiceCustomer();
customer.setId(123);
customer.setName(name);
customer.setAddress(address);
customer.getContactNumbers().add(number1);
customer.getContactNumbers().add(number2);
customer.setCycleDay(10);
return customer;
}
use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.Name in project jbossws-cxf by jbossws.
the class RegistrationServiceImpl method register.
public long register(Customer customer, Object when) throws AlreadyRegisteredFault_Exception, ValidationFault_Exception {
Name name = customer.getName();
if (name == null) {
ValidationFault fault = new ValidationFault();
fault.getFailedCustomers().add(customer.getId());
throw new ValidationFault_Exception("No name!", fault);
}
for (Customer c : customer.getReferredCustomers()) {
log.trace("Refered customer: " + c.getName());
}
log.trace("registering customer: " + customer);
return customer.getId();
}
Aggregations