use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.Customer in project jbossws-cxf by jbossws.
the class ComplexTest method testRegistration.
public void testRegistration(Registration port) throws Exception {
Customer customer = getFredJackson();
customer.getReferredCustomers().add(getJohnDoe());
customer.getReferredCustomers().add(getAlCapone());
XMLGregorianCalendar cal = getCalendar();
port.register(customer, cal);
customer = getAlCapone();
port.register(customer, cal);
}
use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.Customer 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