use of org.apache.hello_world_soap_http.HelloImpl in project cxf by apache.
the class EndpointImplTest method testWSAnnoWithoutWSDLLocationInSEI.
@Test
public void testWSAnnoWithoutWSDLLocationInSEI() throws Exception {
HelloImpl hello = new HelloImpl();
JaxWsServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean();
serviceFactory.setBus(getBus());
serviceFactory.setInvoker(new BeanInvoker(hello));
serviceFactory.setServiceClass(HelloImpl.class);
try (EndpointImpl endpoint = new EndpointImpl(getBus(), hello, new JaxWsServerFactoryBean(serviceFactory))) {
try {
String address = "http://localhost:8080/test";
endpoint.publish(address);
} catch (IllegalArgumentException ex) {
assertTrue(ex.getCause() instanceof BusException);
assertEquals("BINDING_INCOMPATIBLE_ADDRESS_EXC", ((BusException) ex.getCause()).getCode());
}
}
}
Aggregations