cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: wsdl2java code generation problem ArrayOf<Type> Problem
Date Wed, 07 Nov 2007 18:14:43 GMT

This is the way the JAXB spec (and thus the JAX-WS spec) requires them to 
be generated.     We just pass the schema off to JAXB so whatever it 
does is what we do.

Dan


On Wednesday 07 November 2007, Sven wrote:
> Hello,
>
> since 2 days i try to generate client stubs from
> https://api.betfair.com/exchange/v3/BFExchangeService.wsdl.
> the problem are the generated ArrayOf<Type> classes.
> How can i configure wsdl2java, that these array types generated/mapped
> to real java arrays like type[] and not a single arrayOf<Type>-class?
>
> Example (from wsdl above):
>
> <xsd:complexType name="PlaceBetsReq">
>     <xsd:complexContent>
>         <xsd:extension base="types:APIRequest">
>             <xsd:sequence>
>                 <xsd:element name="bets" nillable="true"
> type="types:ArrayOfPlaceBets"/>
>             </xsd:sequence>
>         </xsd:extension>
>     </xsd:complexContent>
> </xsd:complexType>
> ----------------------------------------------------------------------
>--------------------- <xsd:complexType name="ArrayOfPlaceBets">
>     <xsd:sequence>
>         <xsd:element form="qualified" maxOccurs="unbounded"
> name="PlaceBets" nillable="true" type="types:PlaceBets"/>
>     </xsd:sequence>
> </xsd:complexType>
>
>
> this class 'PlaceBetsReq' takes an array of PlaceBets but wsdl2java
> generates a class 'ArrayOfPlaceBets' but i need PlaceBets[].
> i axis 1.4 is see it works, but not at me with xfire.
>
> may be someone can give my some tips or better a solution.
>
> sven



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Mime
View raw message