You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by gr...@convergys.com on 2001/10/01 17:20:06 UTC

Re: Can I retuen a Vector of objects?

I was able to return a hash of beans, which sounds like it's similar to
what you're trying to do.  The most difficult part for me was defining the
wsdl file so that the client knew how to serialize the object.  I
eventually stumbled upon the ibm wsdl generator, and things went better
after that.

If you haven't used the wsdl generator, I would give that a shot first.



                                                                                                      
                    Søren Neigaard                                                                    
                    <neigaard@mobil        To:     <so...@xml.apache.org>                         
                    ethink.dk>             cc:                                                        
                                           Subject:     Can I retuen a Vector of objects?             
                    01-10-01 03:39                                                                    
                    PM                                                                                
                    Please respond                                                                    
                    to soap-user                                                                      
                                                                                                      
                                                                                                      




I want my SOAP method to return a Vector of a given class. Can this be
done?
And if so, how, and how do I read those objects out of the Vector?

I know that I can return a Vector of String, so this must be possible too.
What if the object I want to return, is a simple data bean?

Med venlig hilsen/Best regards
Søren Neigaard
-------------------------------
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.