微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法从 WSDL url wsimport

如何解决无法从 WSDL url wsimport

在 pom.xml 文件中使用此插件。无法生成所需的类。

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jaxws-maven-plugin</artifactId>
    <version>2.6</version>
    <executions>
        <execution>
            <goals>
                <goal>wsimport</goal>
            </goals>
        </execution>
    </executions> 
    <configuration>
        <wsdlUrls>
            <wsdlUrl>https://xml-uat.bookingengine.es/WebService/JP/WebServiceJP.asmx?WSDL</wsdlUrl>
        </wsdlUrls>
        <modules>
            <webModule>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis</artifactId>
                <excluded>true</excluded>
            </webModule>
        </modules>
    </configuration>
</plugin>

我收到“调用 com.sun.tools.ws.wscompile.WsimportTool 失败 - 检查输出错误和 org.apache.maven.plugin.MojoExecutionException。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。