axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mitch Gitman <>
Subject Java collections update?
Date Mon, 31 Mar 2003 18:03:07 GMT
If only to play my own devil’s advocate, I wanted to see what Java2WSDL in
the Axis 1.1 RC2 would do with a Java collections interface/class (Collection,
ArrayList, Set, etc.). So I added this method to my interface to publish:
public Collection getCollection();

Somewhat to my chagrin, Java2WSDL did not complain. However, neither did it
produce a WSDL that quite makes sense to me. Below are the highlights of what
Java2WSDL produced:
<wsdl:definitions ... xmlns:tns3=""
<schema targetNamespace=""
___<import namespace="" /> 
___<complexType name="Array">
_________<restriction base="soapenc:Array">
____________<attribute ref="soapenc:arrayType" wsdl:arrayType="" /> 
<wsdl:message name="getCollectionResponse">
___<wsdl:part name="getCollectionReturn" type="tns3:Array" /> 

* I had never seen before in a WSDL the namespace:
Why the need to introduce this namespace in this situation?

* There’s a newly produced tns3:Array complex type. And this new type has
under its restriction an attribute wsdl:arrayType=“”. It seems to me this
blank should be filled in, but how?

* Is there something else I need to do to get this to work?


View raw message