Examples of CustomerService


Examples of org.apache.cxf.customer.bare.CustomerService

        sf.setBus(getBus());
        sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
        sf.setServiceClass(CustomerService.class);
        sf.getServiceFactory().setWrapped(false);
        sf.setAddress("http://localhost:9001/foo/");
        sf.setServiceBean(new CustomerService());
       
        Map<String, Object> props = new HashMap<String, Object>();
        props.put("Content-Type", "text/plain");
        sf.setProperties(props);
       
View Full Code Here

Examples of org.apache.cxf.customer.bare.CustomerService

        sf.setBus(getBus());
        sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
        sf.setServiceClass(CustomerService.class);
        sf.getServiceFactory().setWrapped(false);
        sf.setAddress("http://localhost:9001/foo/");
        sf.setServiceBean(new CustomerService());

        Map<String, Object> props = new HashMap<String, Object>();
        props.put("contextMatchStrategy", "stem");
        sf.setProperties(props);
View Full Code Here

Examples of org.apache.cxf.customer.bare.CustomerService

        sf.setBus(getBus());
        sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
        sf.setServiceClass(CustomerService.class);
        sf.getServiceFactory().setWrapped(false);
        sf.setAddress("http://localhost:9001/foo/");
        sf.setServiceBean(new CustomerService());

        Map<String, Object> props = new HashMap<String, Object>();
        props.put("Content-Type", "text/plain");
        sf.setProperties(props);
View Full Code Here

Examples of org.apache.cxf.customer.wraped.CustomerService

        sf.setBus(getBus());
        sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
        sf.setServiceClass(CustomerService.class);
        sf.getServiceFactory().setWrapped(true);
        sf.setAddress("http://localhost:9001/");
        sf.setServiceBean(new CustomerService());
       
        Map<String, Object> props = new HashMap<String, Object>();
        props.put("contextMatchStrategy", "stem");
        sf.setProperties(props);
       
View Full Code Here

Examples of org.apache.cxf.customer.wraped.CustomerService

        sf.setBus(getBus());
        sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
        sf.setServiceClass(CustomerService.class);
        sf.getServiceFactory().setWrapped(true);
        sf.setAddress("http://localhost:9001/");
        sf.setServiceBean(new CustomerService());
       
        Map<String, Object> props = new HashMap<String, Object>();
        props.put("contextMatchStrategy", "stem");
        sf.setProperties(props);
       
View Full Code Here

Examples of org.broadleafcommerce.profile.core.service.CustomerService

        wrapDetails(model, request);
    }

    @Override
    public Customer unwrap(HttpServletRequest request, ApplicationContext context) {
        CustomerService customerService = (CustomerService) context.getBean("blCustomerService");
        Customer customer = customerService.readCustomerById(this.id);
        customer.setId(this.id);
        customer.setFirstName(this.firstName);
        customer.setLastName(this.lastName);
        customer.setEmailAddress(this.emailAddress);
        if (customerAttributes != null) {
View Full Code Here

Examples of org.example.customers.CustomerService

        System.out.println("Using SOAP CustomerService");
       
        Service service = Service.create(CustomerServiceService.SERVICE);
        service.addPort(CustomerServiceService.CustomerServicePort, SOAPBinding.SOAP11HTTP_BINDING, address);

        CustomerService customerService = service.getPort(CustomerService.class);
               
        Customer customer = createCustomer("Barry");
        customerService.updateCustomer(customer);
        customer = customerService.getCustomerByName("Barry");
        printCustomerDetails(customer);
        try {
            customerService.getCustomerByName("Smith");
            throw new RuntimeException("Exception is expected");
        } catch (NoSuchCustomerException ex) {
            System.out.println("NoSuchCustomerException : Smith");
        }
    }
View Full Code Here

Examples of org.example.customers.CustomerService

                return new NoSuchCustomerException();
            }

        });

        CustomerService customerService = JAXRSClientFactory
            .createFromModel("http://localhost:" + port + "/services/jaxrs", CustomerService.class,
                             "classpath:/data/model/CustomerService-jaxrs.xml", providers, null);

        System.out.println("Using RESTful CustomerService");

        Customer customer = createCustomer("Smith");
        customerService.updateCustomer(customer);

        customer = customerService.getCustomerByName("Smith");
        printCustomerDetails(customer);

        customer = customerService.getCustomerByName("Barry");
        if (customer != null) {
            throw new RuntimeException("Barry should not be found");
        }
        System.out.println("Status : " + WebClient.client(customerService).getResponse().getStatus());

        try {
            customerService.getCustomerByName("John");
            throw new RuntimeException("Exception is expected");
        } catch (NoSuchCustomerException ex) {
            System.out.println("NoSuchCustomerException : John");
        }
    }
View Full Code Here

Examples of org.example.customers.CustomerService

    public static void main(String args[]) throws Exception {
       
        Bus bus = BusFactory.getDefaultBus();
        System.out.println("Starting Server");
        CustomerService implementor = new CustomerServiceImpl();
        Endpoint.publish("http://localhost:8080/services/jaxws", implementor);

        JAXRSServerFactoryBean jaxrsFactory = new JAXRSServerFactoryBean();
        jaxrsFactory.setBus(bus);
        jaxrsFactory.setAddress("http://localhost:8080/services/jaxrs");
View Full Code Here

Examples of org.lightadmin.demo.service.CustomerService

            }
        };
    }

    private FieldValueRenderer<Customer> vipStatusRenderer() {
        final CustomerService _customerService = customerService;
        return new FieldValueRenderer<Customer>() {
            @Override
            public String apply(Customer customer) {
                return _customerService.isVIP(customer) ? "Yes" : "No";
            }
        };
    }
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.