The wsconsume ant task could be used with the maven-antrun-plugin! In my case I 
am using JBossWS and I simply use the task found in the jbossws-spi.jar, i.e.

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>generatewsdlsources</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<taskdef
name="wsconsume"
classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask"
classpathref="maven.test.classpath" />
<wsconsume
fork="false"
verbose="true"
destdir="target/classes"
sourcedestdir="src/main/java-generated" keep="true"
wsdllocation="http://localhost:8080/myWs?wsdl";
wsdl="${basedir}/src/main/config/my.wsdl" />
</tasks>
</configuration>
</execution>
</plugin>

/Daniel

-----Ursprungligt meddelande-----
Från: Vishal Pahwa [mailto:[email protected]] 
Skickat: den 4 mars 2009 05:57
Till: Maven Users List
Ämne: Wsdl2java code generation

Maven of "Maven" build technology,
Greetings !!

I need some help with the maven plugin to generate code from wsdl file.
If you have tried the same earlier please email me separately.

What has been tried:

Option 1
"wsdl2java" plugin (CXF WSDL-to-Java code generation)
This generates the code from wsdl file but the java files it generates are not 
proper. For instance, the java files (VO) are not implementing Serializable 
interface, and other classes which needs to implement Remote interface are not 
doing so, etc. Thus we are not able to use the java code which this plugin 
generates.

Option 2
"wsdl2code" plugin (axis2-wsdl2code-maven-plugin)
The java classes generated by this plugin does not create the correct package 
structure, thus compilation fails.

What we want?
1) Any pointers around any argument or property etc which can be set so as to 
properly generate the java files using wsdl2java.
2) Pointers to generate the correct package structure for java files using 
wsdl2code.

Please let me know in case you require more information.

Regards,
Vishal



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to