版本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

相关文章:

  • 2021-07-08
  • 2021-04-02
  • 2022-01-23
  • 2021-08-13
  • 2022-12-23
  • 2021-08-28
  • 2021-11-27
  • 2021-07-13
猜你喜欢
  • 2021-06-09
  • 2021-08-08
  • 2021-12-08
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
相关资源
相似解决方案