axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mert Çalışkan" <>
Subject wsdl2java code generation
Date Fri, 25 May 2007 10:20:32 GMT
Hello all,

I've a problem with JavaCode generation while using wsdl2java. It seems like
a bug but I'm not sure about the behaviour.
The problematic fragment of the wsdl that I'm using is below.

        <xs:element name="KKKDReturn" type="ax25:KKKDReturn"/>
            <xs:complexType name="KKKDReturn">
                    <xs:element name="exceptionMsg" nillable="true"
                    <xs:element name="failed" type="xs:boolean"/>
                    <xs:element name="recordCount" type="xs:int"/>
                    <xs:element maxOccurs="unbounded" name="returnData"
nillable="true" type="ax25:KKKDWebObject"/>
                    <xs:element name="status" nillable="true"

            <xs:element name="KKKDWebObject" type="ax25:KKKDWebObject"/>
            <xs:complexType name="KKKDWebObject">
                    <xs:element maxOccurs="unbounded" name="nameValuePairs"
nillable="true" type="ax25:KKKDNameValue"/>
            <xs:element name="KKKDNameValue" type="ax25:KKKDNameValue"/>
            <xs:complexType name="KKKDNameValue">
                    <xs:element name="name" nillable="true"
                    <xs:element name="value" nillable="true"

What I want is a KKKDReturn object containing an array of KKKDWebObject that
has KKKDNameValue array inside.
But Axis generates the getter/setter of the returnData (italic txt) with
return type KKKDNameValue[][] instead of KKKDWebObject[].
And the pojo of KKKDWebObject is not being generated. I found a workaround
for this by adding a dummy name field to the xs:sequence
inside KKKDWebObject. What would be the reason for the generation like this?
And how can I overcome this?

Thanks in advance..



View raw message