插件地址: https://github.com/nutzam/nutzmore/tree/master/nutz-integration-cxf
客户端测试代码:
@Test
public void test_local() throws MalformedURLException {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(EchoService.class);
factory.setAddress("https://nutz.cn/cxf/EchoService");
EchoService client = (EchoService) factory.create();
String reply = client.echo("hi, cxf");
System.out.println("Server said: " + reply);
System.out.println("Server said: " + client.ping());
assertEquals("hi, cxf", reply);
}