Hi Daniel,
If you use maven plugin to genrate code, you can specify the target code
folder by specifying the sourceRoot in the plugin configuration, a
sample here
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>2.0-incubator-RC-SNAPSHOT</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${YOUR_WSDL_PATH}/myService.wsdl</wsdl>
<extraargs>
<extraarg>-b</extraarg>
<extraarg>${YOUR_BINDING_FILE_PATH}/my_binding.xml</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
If you use wsdl2java commandline tool directly, you can use -d to
specify the generated code path.
[1]For more about the wsdl2java
[1]http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html
Freeman
patchworker wrote:
Hello Freeman,
thank's!! Now I understand it, it's a very nice mechanism.
How do you check the result what is generated? By eclipse-debug or is there
a setting what puts also the source into target/classes ?
Cheers!
Daniel
Freeman Fang wrote:
then in the gererated code, you get an UnknownPersonFault class which
extend the java.lang.Exception, a sub class of java.lang.Throwable