This is the best approach. You cannot send a collection and expect a C++, perl or .net app at the far end to make any sense of it whatsoever. And if you dont care about interop, use RMI-IIOP or the like instead of SOAP.
----- Original Message ----- From: "Jung, Eric (Contractor)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 08, 2002 6:12 AM Subject: RE: Use Java Collection > Sam, > I don't know what is usual, but I send the Collection and receive an Object > array on the client side. My client stub then builds a Collection from that > Object array which is used by the rest of the client application. > > Eric H. Jung > > -----Original Message----- > From: Samuel Kerrien [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 08, 2002 6:57 AM > To: [EMAIL PROTECTED] > Subject: Use Java Collection > > > Hi all, > > I have a question about web services, more eprecisely about type exchange. > I would like my web service to send a collection of java objects, I'd > implemented that method > to send the java.util.Collection object. > > > public Collection get myMethod ( String a, String b ) { > Collection c = new ArrayList (); > > (...) > > return c; > } > > > When I have a look in my wsdl file, it's an object array. > > <wsdl:message name="getComputedTlpContentResponse"> > <wsdl:part name="return" type="SOAP-ENC:Array"/> > </wsdl:message> > > I don't succeed to retreive that collection in my client program ... > > Someone know what is the usual way to use that kind of object. > If there are a a usual manner ;o) > > Thanks in advance. > > Sam. > > -- > > > > __________________________________________________________________ > > Samuel Kerrien [EMAIL PROTECTED] > EMBL Outstation > The European Bioinformatics Institute > Wellcome Trust Genome Campus > Hinxton, Cambridge, CB10 1SD, UK > __________________________________________________________________ > >
