Eclipse Indigo版本是否有单独的org.apache.axis.wsdl2java jar文件,因为它在indigo版本中不起作用,显示如下错误:
无法启动所选向导.插件"org.apache.axis.wsdl2java.eclipse"无法实例化类"org.apache.axis.wsdl2java.eclipse.wizards.WebReferenceImportWizard".组织/蚀/型芯/内部/ utils的/断言
但是这个jar文件在Eclipse sdk 2.1版本中运行,那么我该如何进行转换呢?
谢谢,@ nag.
我过去使用过Axis2,但现在只使用CXF。由于 CXF 对我有用,但尚未有人回答,所以我建议您尝试一下 CXF wsdl2java 插件。在 Maven pom.xml 项目中设置很容易
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/myService.wsdl</wsdl>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
参考http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html