版本apache-cxf-3.1.0
命令如下:
wsdl2java -p com.wz.interfaces -d ./src -client ./ws/xxx.wsdl
报错如下:
WSDLToJava Error: Parameter: shead already exists for method 方法名
but of type com.wz.interfaces.某类.SHEAD instead of com.wz.interfaces.另外一个类.SHEAD.
Use a JAXWS/JAXB binding customization to rename the parameter.
解决方法:
wsdl2java.bat -p com.wz.interfaces -autoNameResolution -frontend jaxws21 -impl -exsh true -d ./src -client ./ws/xxx.wsdl