use of org.apache.cxf.endpoint.dynamic.DynamicClientFactory in project cxf by apache.
the class ClientServerPartialWsdlTest method testCXF4676partial2.
@Test
public void testCXF4676partial2() throws Exception {
DynamicClientFactory dcf = DynamicClientFactory.newInstance();
Client client = dcf.createClient("http://localhost:" + PORT + "/AddNumbersImplPartial2Service?wsdl", serviceName2, portName2);
updateAddressPort(client, PORT);
Object[] result = client.invoke("addTwoNumbers", 10, 20);
assertNotNull("no response received from service", result);
assertEquals(30, result[0]);
}
Aggregations