use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.
the class OperationNSTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
sf.setServiceClass(NotificationLogImpl.class);
sf.setAddress("local://NotificationLogImpl");
sf.getServiceFactory().setDataBinding(new AegisDatabinding());
sf.create();
}
use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.
the class StudentTest method testWSDL.
@Test
public void testWSDL() throws Exception {
JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
sf.setServiceClass(StudentService.class);
sf.setServiceBean(new StudentServiceImpl());
sf.setAddress("local://StudentService");
setupAegis(sf);
Server server = sf.create();
Document wsdl = getWSDLDocument(server);
assertValid("//*[@name='string2stringMap']", wsdl);
}
use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.
the class StaxRoundTripTest method createService.
private Service createService() {
// Create the Service
JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
factory.setServiceBean(new EchoImpl());
factory.setAddress("local://Echo");
factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
Server server = factory.create();
Service service = server.getEndpoint().getService();
service.getInInterceptors().add(new LoggingInInterceptor());
service.getOutInterceptors().add(new LoggingOutInterceptor());
return service;
}
use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.
the class UDPTransportTest method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
factory.setAddress("udp://:" + PORT);
factory.setServiceClass(Greeter.class);
factory.setServiceBean(new GreeterImpl());
// factory.setFeatures(Collections.singletonList(new LoggingFeature()));
server = factory.create();
}
use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.
the class StaxToDOMEncryptionIdentifierTest method createService.
private Service createService() {
// Create the Service
JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
factory.setServiceBean(new EchoImpl());
factory.setAddress("local://Echo");
factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
Server server = factory.create();
Service service = server.getEndpoint().getService();
service.getInInterceptors().add(new LoggingInInterceptor());
service.getOutInterceptors().add(new LoggingOutInterceptor());
return service;
}
Aggregations