您的位置:首页 > 运维架构 > Apache

用apache-cxf生成webservice客户端的时候报错Parameter: shead already exists for method

2015-11-03 15:06 627 查看
版本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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: