能正常生成客户端说明你的服务接口描述没有问题,应该是你客户端调用的代码有问题,把你客户端调用代码贴出来看看。可参考如下代码:
JaxWsDynamicClientFactory clientFactory = JaxWsDynamicClientFactory.newInstance();
//你的wsdl地址
Client client = clientFactory.createClient("http://localhost:8080/helloWorld?wsdl");
Object[] res = client.invoke("sayHello", "chhgge");
System.out.println(res[0]);
参考下如下代码:
JaxWsDynamicClientFactory clientFactory = JaxWsDynamicClientFactory.newInstance();
//你的wsdl地址
Client client = clientFactory.createClient("http://localhost:8080/helloWorld?wsdl");
Object[] res = client.invoke("sayHello", "chhgge");
System.out.println(res[0]);
如果解决你问题 请采纳
谢谢
检查一下是否是包名的问题。