1 package de.spring.webservices.rest.main;
3 import org.springframework.context.ApplicationContext;
4 import org.springframework.context.support.ClassPathXmlApplicationContext;
6 import de.spring.webservices.rest.business.BusinessService;
10 * This class is used just like a nice example about how to write and run client
11 * code which will send data to and from the Web Services.
14 public class MainTest {
15 public ApplicationContext context;
20 public static void main(final String[] args) {
21 final MainTest test = new MainTest();
23 test.context = new ClassPathXmlApplicationContext(
24 "classpath:spring-configuration/rest-config.xml");
26 final BusinessService example =
27 (BusinessService) test.context.getBean("businessService");
29 example.doSomethingWithCars();
31 example.doSomethingWithCar(66L);
33 example.createsNewCar();