use of org.apache.hello_world_rpclit.GreeterRPCLit in project cxf by apache.
the class RespectBindingFeatureClientServerTest method testRespectBindingFeature.
@Test
public void testRespectBindingFeature() throws Exception {
startServers("/wsdl_systest/cxf2006.wsdl");
try {
GreeterRPCLit greeter = service.getPort(portName, GreeterRPCLit.class, new RespectBindingFeature(true));
updateAddressPort(greeter, PORT);
greeter.greetMe("hello");
fail("WebServiceException is expected");
} catch (Exception ex) {
assertTrue("WebServiceException is expected", ex instanceof javax.xml.ws.WebServiceException);
assertTrue("RespectBindingFeature message is expected: " + ex.getMessage(), ex.getMessage().indexOf("extension with required=true attribute") > -1);
}
}
Aggregations