I want to create a contract first Spring webservice. So I have the WSDL file, but I can't find any example of generating the Spring webservices from the WSDL.
With this Maven plugin, I can generate it, but it will be a J2EE WebService, and not a Spring WebService, am I Right?:
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<configuration>
<xdebug>true</xdebug>
<verbose>true</verbose>
<target>2.0</target>
</configuration>
<executions>
<execution>
<id>generate-service</id>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<wsdlDirectory>src/main/resources/wsdls</wsdlDirectory>
<wsdlFiles>
<wsdlFile>service.wsdl</wsdlFile>
</wsdlFiles>
<sourceDestDir>target/generated-code/src</sourceDestDir>
</configuration>
</execution>
</executions>
</plugin>
This will generate an interface, which has the @WebService annotation. But this is for the J2EE application, and not Spring, right?
So, is there any tool in maven for generate Spring WebServices from an already written WSDL file?
Because I cannot find any, only the jaxws-Maven-plugin.