Hi,
I guess this has been discussed a lot of times, but even though I've found
plenty of documents on the web (including JIRA issues, blogs, ...) I still
can't make my generated classes implement Serializable.
I'm using CXF 2.2.8 and the cxf-codegen-plugin. I'm also using a
customization file.
Here it is :
<?xml version="1.0" encoding="UTF-8"?>
<jaxws:bindings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
<jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle>
<jxb:bindings>
<jxb:globalBindings>
<xjc:serializable uid="12345"/>
</jxb:globalBindings>
</jxb:bindings>
</jaxws:bindings>
and here is the way the plugin is called :
[...]
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf-version}</version>
<executions>
<execution>
<id>generate-sources</id>
<configuration>
<sourceRoot>src/main/java</sourceRoot>
<defaultOptions>
<bindingFiles>
<bindingFile>src/main/resources/jaxws-binding.xml</bindingFile>
</bindingFiles>
</defaultOptions>
<wsdlOptions>
<wsdlOption>
<wsdl>src/main/resources/schemas/WS/Loopbaan/NisseLoopbaan_V1.wsdl</wsdl>
<extraargs>
<extraarg>-impl</extraarg>
<extraarg>-client</extraarg>
</extraargs>
</wsdlOption>
<wsdlOption>
<wsdl>src/main/resources/schemas/WS/Loopbaan/SifLoopbaan_V1.wsdl</wsdl>
<extraargs>
<extraarg>-impl</extraarg>
<extraarg>-server</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
[...]
I'm sure I'm missing something, but can't figure out what.
Any idea ?
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.