用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
命令如下:
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
相关文章推荐
- Apache安装问题:configure: error: APR not found . Please read the documentation
- Apache+Mysql+PHP环境配置(WINDOWS)
- Apache-Tika解析PDF文档
- JDBC:Apache DBUtils的使用
- 解决 java.lang.NoSuchMethodError: org.apache.hadoop.fs.FSOutputSummer.(Ljava/util/zip/Checksum;II)V
- APR 池
- Apache 防盗链设置
- 玩转apache之日志【转帖】
- Apache mahout中HMM(隐马尔可夫)算法的测试
- apache kafka源代码分析工程搭建(IDEA)
- PHP基础——PHP、MySQL、Apache配置
- Linux系统Apache SSL安装与配置
- CentOS7配置Apache多站点VirtualHost
- php的开发的apache的配置及伪静态的应用
- Apache2.2 + php-5.4.45-Win32-VC9-x86 配置
- Apache Server 2.2 多站点域名转向配置文件
- 性能测试-ApacheBench
- Apache Kafka源码分析 - PartitionStateMachine
- Linux(Centos)Apache安装配置过程中可能出现的错误
- [实践证明整理系列]CentOS 6中简单架设Apache James邮件服务器