use of org.apache.hello_world_soap_http.HelloWrongAnnotation in project cxf by apache.
the class EndpointImplTest method testSOAPBindingOnMethodWithRPC.
@Test
public void testSOAPBindingOnMethodWithRPC() {
HelloWrongAnnotation hello = new HelloWrongAnnotation();
JaxWsServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean();
serviceFactory.setBus(getBus());
serviceFactory.setInvoker(new BeanInvoker(hello));
serviceFactory.setServiceClass(HelloWrongAnnotation.class);
try {
new EndpointImpl(getBus(), hello, new JaxWsServerFactoryBean(serviceFactory)).close();
} catch (Exception e) {
String expeced = "Method [sayHi] processing error: SOAPBinding can not on method with RPC style";
assertEquals(expeced, e.getMessage());
}
}
Aggregations