Search in sources :

Example 1 with Customers

use of org.apache.cxf.customer.Customers in project cxf by apache.

the class CustomerService method getCustomers.

@WebMethod
@WebResult(name = "customers")
public Customers getCustomers() {
    Customers cbean = new Customers();
    cbean.setCustomer(customers.values());
    return cbean;
}
Also used : Customers(org.apache.cxf.customer.Customers) WebMethod(javax.jws.WebMethod) WebResult(javax.jws.WebResult)

Example 2 with Customers

use of org.apache.cxf.customer.Customers in project cxf by apache.

the class CustomerService method getCustomers.

@WebMethod
@WebResult(name = "customers")
public Customers getCustomers(@WebParam(name = "GetCustomers") GetCustomers req) {
    Customers cbean = new Customers();
    cbean.setCustomer(customers.values());
    if (context == null || context.getMessageContext() == null) {
        throw new WebServiceException("WebServiceContext is null!");
    }
    return cbean;
}
Also used : WebServiceException(javax.xml.ws.WebServiceException) Customers(org.apache.cxf.customer.Customers) WebMethod(javax.jws.WebMethod) WebResult(javax.jws.WebResult)

Aggregations

WebMethod (javax.jws.WebMethod)2 WebResult (javax.jws.WebResult)2 Customers (org.apache.cxf.customer.Customers)2 WebServiceException (javax.xml.ws.WebServiceException)1