use of org.apache.hello_world_soap_http.SOAPServiceDocLitBare in project cxf by apache.
the class ClientServerTest method testDocLitBareConnection.
@Test
public void testDocLitBareConnection() throws Exception {
SOAPServiceDocLitBare service = new SOAPServiceDocLitBare();
assertNotNull(service);
DocLitBare greeter = service.getPort(portName1, DocLitBare.class);
updateAddressPort(greeter, BARE_PORT);
try {
BareDocumentResponse bareres = greeter.testDocLitBare("MySimpleDocument");
assertNotNull("no response for operation testDocLitBare", bareres);
assertEquals("CXF", bareres.getCompany());
assertTrue(bareres.getId() == 1);
} catch (UndeclaredThrowableException ex) {
throw (Exception) ex.getCause();
}
}
Aggregations