generate java.util.List collections for XMLElementWrappers
----------------------------------------------------------
Key: CXF-2446
URL: https://issues.apache.org/jira/browse/CXF-2446
Project: CXF
Issue Type: New Feature
Components: Tooling
Reporter: warren crossing
when generating code with the xew plugin you have to turn off
<jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle>
otherwise the cxf proxy will fail at runtime with a class cast exception.
could some extension be added to generate XMLElementWrappers with one and only
one collection as java.util.List?
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxfVersion}</version>
<executions>
<execution>
<id>cxf-shipment</id>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2java</goal>
</goals>
<configuration>
<sourceRoot>${project.build.directory}/generated-sources/main</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/ShipmentService.wsdl</wsdl>
<bindingFiles>
<bindingFile>${basedir}/src/main/resources/bindings-global.xml</bindingFile>
</bindingFiles>
<extraargs>
<arg>-xjc-Xxew</arg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
</execution>
</executions>
<configuration>
<defaultOptions>
<autoNameResolution>true</autoNameResolution>
</defaultOptions>
<verbose>true</verbose>
</configuration>
<dependencies>
<dependency>
<groupId>dk.conspicio</groupId>
<artifactId>xew</artifactId>
<version>1.0.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.