axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson, Chris" <>
Subject Axis2 and arrayTypes
Date Thu, 04 Oct 2007 13:35:49 GMT
All -

I have a wsdl that's defined a string array as the following..

    <!-- StringArray Type -->
    <xsd:complexType name="StringArray">
          <xsd:restriction base="soapenc:Array">
              <xsd:attribute ref="soapenc:arrayType"

Later in the WSDL I use the string array in an element by doing
something like the following as part of another complexType

<xsd:complexType name="MyComplexType">
    <xsd:element name="name" wsdl:arrayType="xsd:string"/
    <xsd:element name="array" wsdl:arrayType="typens:StringArray"/>

After running wsdl2java and working in the generated code I don't see
how I can get the 'StringArray' type out of the 'MyComplexType'  I would
expect to see something like this..

MyComplexType.getArray() to return String[]

Just as MyComplexType.getName() returns a String.

This was never a problem with Axis1, how do I go about this in Axis2?



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

View raw message