axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Molinari <>
Subject Re: Array types and unwrapping
Date Wed, 14 Nov 2007 08:03:06 GMT
Amila Suriarachchi ha scritto:
> On Nov 13, 2007 7:01 PM, Mauro Molinari <> wrote:
> Here is the response element for this operation
> <xsd:element name="getVisiblePortfoliosResponse">
>         <xsd:complexType>
>           <xsd:sequence>
>             <xsd:element name="visiblePortfolios"
>               type="txsns:ArrayOfCardinisPortfoliosType">
>             </xsd:element>
>           </xsd:sequence>
>         </xsd:complexType>
>       </xsd:element>
> the unwrapping basically happens in one level. So the generated
> method should take the visiblePortfolios as an argument.
> For return types this happen only if inner complex type has one
> element.

Hi Amila,
actually this is exactly the case: the visiblePortfolios element has 
just one element, an array of CardinisPortfoliosType in this case!
In fact, the generated wrapper class ArrayOfCardinisPortfoliosType has 
an only "useful" method, getItem(), that returns that array ("item" is 
the name of the element in the ArrayOfCardinisPortfoliosType complex 
type definition). But WSDL2Java does not do the unwrapping.

Do you suggest any other way to define and array in a document/literal 
wrapped style WSDL so that WSDL2Java can do the unwrapping?

It would be VERY helpful, because working with these wrappers makes the 
code quite unconfortable to manage...

Mauro Molinari
Software Developer

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message