gpt4 book ai didi

java - 使用 woden-converter-maven-plugin 将 WSDL 1.1 转换为 WSDL 2.0 的 Maven 配置

转载 作者:行者123 更新时间:2023-11-30 11:35:17 25 4
gpt4 key购买 nike

作为我们的 Maven 构建过程的一部分,我希望将 WSDL 1.1 版转换为 WSDL 2.0 格式。

我已经 come across Woden Converter 实用程序,它使用 XSL 进行此转换,并希望使用它。但是,似乎没有关于如何配置或使用相关 maven 插件的文档或示例(我可以找到):woden-converter-maven-plugin

有没有人有这方面的经验,他们可以分享 maven 插件配置的详细信息吗?

理由(对于那些需要它的人):我们有一个契约优先的 Web 服务,并且最近有一个要求将我们的 WSDL 以 2.0 格式公开给一个特定的客户端。为了节省维护两个相同的 WSDL,我们希望维护 1.1 wsdl 并让构建过程自动生成 2.0 版本。

最佳答案

Here are the sources for the plugin .你可以设置的不多。检查字段。您可以在 <configuration/> 中进行设置插件的一部分。

考虑一下:

    <plugin>
<groupId>org.apache.woden</groupId>
<artifactId>woden-converter-maven-plugin</artifactId>
<version>1.0M9</version>
<executions>
<execution>
<id>convert</id>
<goals>
<goal>convert</goal>
</goals>
<configuration>
<wsdl><!-- File or URL of wsdl1.1 document.Also multiple
WSDL files can be specified as a comma separated
list. -->
</wsdl>
<targetNS>
<!-- New target namespace for WSDL2.0 document. -->
</targetNS>
<targetDir>
<!-- Target directory for output, default
location is project build directory. -->
</targetDir>
<sourceDir><!-- Source directory for output. --></sourceDir>
<verbose><!-- Verbose mode --></verbose>
<overwrite><!-- Overwrite existing files. --></overwrite>
</configuration>
</execution>
</executions>
</plugin>

关于java - 使用 woden-converter-maven-plugin 将 WSDL 1.1 转换为 WSDL 2.0 的 Maven 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15204143/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com