I think a tag something like <list> would work great, which follows the
same convention for <map>.
Since Collection type are widely used...it would make sense to me to make
the adjustment.
What I don't know, and should probably recieve input from if this is
acceptable or violates a spec requirement.

Thanks,
David Cole




                                                                                       
                              
                    "R J                                                               
                              
                    Scheuerle Jr"        To:     [EMAIL PROTECTED]               
                              
                    <[EMAIL PROTECTED]        cc:     [EMAIL PROTECTED]               
                              
                    .com>                Subject:     Re: Methods Returning ArrayList 
converted to Object[] in       
                                         WSDLToJava                                    
                              
                    02/21/2002                                                         
                              
                    03:50 PM                                                           
                              
                    Please                                                             
                              
                    respond to                                                         
                              
                    axis-dev                                                           
                              
                                                                                       
                              
                                                                                       
                              




How do you think Java2WSDL should interpret a return type of ArrayList ?

(
If you could provide an alternate xml representation other than type
="SOAP-ENC:Array" I could
change Java2WSDL/WSDL2Java to honor it.   I don't know anything about
<list>...maybe this is the answer ?

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



                      "David L. Cole"

                      <DLCole@cmsenergy        To:
[EMAIL PROTECTED]
                      .com>                    cc:

                                               Subject:  Methods Returning
ArrayList converted to Object[] in WSDLToJava
                      02/21/2002 03:32

                      PM

                      Please respond to

                      axis-dev






I am trying to use the WSDLTOJava to generate the client stubs and found
that If I have a method in my class which has
a return type of ArrayList (i.e public ArrayList foo() ), The generated
WSDL will show the return type as:

<wsdl:part name="return" type="SOAP-ENC:Array" />

After running WSDLTOJava , the generated stub will then have a return type
of Object[] i.e:
public java.lang.Object[] foo()

Is it possible to have the WSDL generated so that it correctly depicts the
return type as the expected ArrayList?

Thanks,
David Cole








Reply via email to