cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Warren Crossing (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2446) generate java.util.List collections for XMLElementWrappers
Date Wed, 30 Sep 2009 08:46:32 GMT

    [ https://issues.apache.org/jira/browse/CXF-2446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760863#action_12760863
] 

Warren Crossing commented on CXF-2446:
--------------------------------------

Hello Daniel

I have encapsulated the problem in the following example, how ever it 
seems to get stuck at the point before that.  Could you please look at 
it anyway.

It does clearly show how array, collection generation for wsdl to java 
is a bit broken.

The first module creates the wsdl. For completeness.
The second module creates the java.

http://www.pointdefence.net/example.tar

I'm unsure on the general procedure for uploading largish files so I 
created a link.





> 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.


Mime
View raw message