[
https://issues.apache.org/jira/browse/CXF-2446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761719#action_12761719
]
Daniel Kulp commented on CXF-2446:
----------------------------------
I think this example would be considered "invalid" and I'm tempted to close
this off as such.
You have two schemas generating into the same package (examples) and thus end
up with two different ObjectFactory objects and resulting confusion in the
context setups. You are using the service interface from the first one (in
example), but it ends up with the jaxb objects and such from the second one
(examples-cxf) which then causes a bunch of wierd things to happen.
> 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.