use of org.apache.cxf.customer.Customer in project cxf by apache.
the class CustomerService method getCustomer.
@WebMethod
@WebResult(name = "customer")
public Customer getCustomer(@WebParam(name = "getCustomer") GetCustomer getCustomer) throws CustomerNotFoundFault {
Customer c = customers.get(getCustomer.getId());
if (c == null) {
CustomerNotFoundDetails details = new CustomerNotFoundDetails();
details.setId(getCustomer.getId());
throw new CustomerNotFoundFault(details);
}
return c;
}
use of org.apache.cxf.customer.Customer in project cxf by apache.
the class CustomerService method createCustomer.
final Customer createCustomer() {
Customer c = new Customer();
c.setName("Dan Diephouse");
c.setId(123);
return c;
}
use of org.apache.cxf.customer.Customer in project cxf by apache.
the class CustomerService method createCustomer.
final Customer createCustomer() {
Customer c = new Customer();
c.setName("Dan Diephouse");
c.setId(123);
return c;
}
Aggregations