https://mirrors.tuna.tsinghua.edu.cn/apache/cxf/3.2.12/
上面地址下载wsdl2java插件
CMD命令行输入wsdl2java -help,有正常提示说明环境已经正确配置。
使用一下命令生成对应java文件 -p 生成包名 -d生成的路径 -noAddressBinding wsdl地址
wsdl2java -p com.gomeet -d D:\test -client -encoding utf-8 -noAddressBinding http://112.26.207.237:65200/AWM_HRSS_OTHER_SERVICE/services/CompanySiteTransService?wsdl
例子:
public class test_client {
public static void main(String[] args)
{
OttService service2 = new OttService();
OttServiceSoap serviceSoap = service2.getOttServiceSoap();
String rest = serviceSoap.getPlayListGuidWithDate("2018-09-01");
System.out.println(rest);
}
}