I have found some really weird behavior in axis 1.3 final code generator.
 
I have this type:
 
   <xsd:complexType name="ArrayOfString"
                    elementFormDefault="qualified" 
                    targetNamespace=http://arrays.ws 
                    xmlns=" http://www.w3.org/2001/XMLSchema";>
       <xsd:sequence>
         <xsd:element maxOccurs="unbounded" minOccurs="0" name="item" 
type="xsd:string"/> 
       </xsd:sequence>
   </xsd:complexType>
 
and a method that returns ArrayOfString.
 
When I call WSDL2Java the code generated doesn't return ArrayOfString, instead 
it returns String[]. ArrayOfString type is not even generated.
Only after I use  -w, --wrapArrays the code is using the right type and 
ArrayOfString is generated.
 
I didn't had to use this switch in 1.2.1. Is there any reason for this change 
or is just a bug?
Doesn't look to me like the right behavior, if a define a method to return type 
T I expect to see T in return right?
 
BTW: my webservice is using Document Wrapped style, and I started the design 
from XML schemas.
 
Alin

Reply via email to