【问题标题】:Is there any Apache Axis WSDL2Java jar file for Eclipse IndigoEclipse Indigo 是否有任何 Apache Axis WSDL2Java jar 文件
【发布时间】:2011-11-03 12:52:48
【问题描述】:

Eclipse Indigo 版本是否有任何单独的 org.apache.axis.wsdl2java jar 文件,因为它在 indigo 版本中不起作用显示如下错误:

无法启动选定的向导。 插件“org.apache.axis.wsdl2java.eclipse”无法实例化类“org.apache.axis.wsdl2java.eclipse.wizards.WebReferenceImportWizard”。 org/eclipse/core/internal/utils/Assert

但是那个 jar 文件是在 Eclipse sdk 2.1 版本中工作的,那么我该如何进行转换呢?

谢谢, @nag。

【问题讨论】:

    标签: eclipse wsdl2java


    【解决方案1】:

    我过去使用过 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>
    

    参考http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-01-09
      • 2023-03-28
      • 1970-01-01
      • 2016-04-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多