我找到了解决方案,我使用axistools-maven-plugin生成了WSDD,设置:serverSide参数为true - 然后它生成WSDD文件。
这是 Maven 插件部分:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<executions>
<execution>
<id>wsdl2java-job</id>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2java</goal>
</goals>
<configuration>
<sourceDirectory>
src/main/config/wsdl2java/myfolder
</sourceDirectory>
<outputDirectory>
${generatedSourcesDirectory}
</outputDirectory>
<testCases>false</testCases>
<serverSide>true</serverSide>
<subPackageByFileName>false</subPackageByFileName>
<packageSpace>my.api</packageSpace>
</configuration>
</execution>
</executions>
</plugin>