我希望将WSDL版本1.1转换为WSDL 2.0格式,作为maven构建过程的一部分。
我遇到了Woden Converter实用程序,它使用XSL来完成这种转换,我想使用它。然而,似乎没有文档或例子(我可以找到)如何配置或使用相关的maven插件:woden-converter-maven-plugin
有没有人有这样的经验,他们可以分享maven插件配置细节吗?
调整(有需要的):我们有一个契约优先的Web服务,并且最近需要将2.0格式的WSDL公开给一个特定的客户机。为了节省维护两个相同wsdl的时间,我们希望维护1.1 wsdl,并让构建过程自动生成2.0版本。
下面是插件的源代码。你能设定的不多。检查字段。你可以在插件的<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>