You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/09/25 03:07:15 UTC
[jira] Commented: (CXF-2446) generate java.util.List collections
for XMLElementWrappers
[ https://issues.apache.org/jira/browse/CXF-2446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759347#action_12759347 ]
Daniel Kulp commented on CXF-2446:
----------------------------------
Is the xew plugin available in a maven repo someplace? Could you post the stack trace? Maybe even a simple hello world style test case.
> 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.