THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
// Build up the server factory bean JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean(); sf.setServiceClass(CustomerService.class); // Use the HTTP Binding which understands the Java Rest Annotations sf.setBindingFactory(new HttpBindingInfoFactoryBean()setBindingId(HttpBindingFactory.HTTP_BINDING_ID); sf.setAddress("http://localhost:8080/json"); sf.setServiceBean(new CustomerServiceImpl()); sf.setProperties(properties); sf.create(); |