axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R J Scheuerle Jr" <>
Subject Re: Wsdl2java and collections
Date Wed, 28 Nov 2001 20:39:54 GMT
As Russell indicated, this support is not required by JAX-RPC.

If we were to implement this feature...

1) What would be the java representation of the characterReferences field
and methods?

2) Should the runtime enforce the minOccurs/maxOccurs attributes?

3) Should the generated class have a way to enforce the minOccurs/maxOccurs

4) Supporting this feature could be much more difficult in an <all> group?
Should the feature be limited to a <sequence> group?

5) Some subsets of minOccurs/maxOccurs would be easier to implement.
     a) minOccurs=0 maxOccurs=1
     b) minOccurs=0 maxOccurs= unbounded  .....requires no checking


Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)

                    "Mark Young"                                                         
                    <mark@kamiak.c       To:     <>      
                    om>                  cc:                                          
                                         Subject:     Wsdl2java and collections          
                    01:27 PM                                                             
                    Please respond                                                       
                    to axis-dev                                                          

I don't believe that Wsdl2java correctly handles a collection within a
complex type:

For example, use this complex type in your message part:

 <xsd:complexType name="LoanApplication">
   <xsd:element name="name" type="xsd:string"/>
   <xsd:element name="address" type="xsd:string"/>
   <xsd:element name="networth" type="xsd:double"/>
   <!--Must have at least two character references

   <xsd:element name="characterReferences" type="xsd:string" maxOccurs
="unbounded" minOccurs="2">

When I do so, I see that the resulting java class looks like this:

     public class LoanApplication implements {
         private java.lang.String name;
         private java.lang.String address;
         private double networth;
         private java.lang.String characterReferences;


         public java.lang.String getCharacterReferences() {
             return characterReferences;

         public void setCharacterReferences(java.lang.String
     characterReferences) {
             this.characterReferences = characterReferences;

LoanApplication.characterReferences is not a collection.

Are there any plans to address this?


Mark Young

View raw message