-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Scott Lamb wrote:
> How can I get Axis to use the Java Collections classes? I see in 
> 1.2.1's "What's in this release" section that it says "Automatic two-
> way conversions between Java Collections and SOAP Arrays". I don't  see
> any details, though. How do I use this?
> 
> Specifically, I'm playing with GoogleSearch.wsdl. The 
> GoogleSearchResult class AXIS has getResultElements() and 
> setResultElements() methods that deal with plain Java arrays - 
> ResultElement[]. I'd prefer collections objects like List or (for  Java
> 1.5) List<ResultElement>.
> 
> Is this what this snippet is describing? If not, what does it mean?  And
> is there any way to do what I want?

  What benefits would you get by sending the extra data that a
collection would require?

  If you send it as an array, and then the client can decide which way
to use the data, so if a hashmap would make sense for the client, it can
be stored that way, but, not all clients have collection apis. For
example, if you use gsoap and a C client, you would need to use arrays.

  It is trivial to insert the array into a collection, and is simpler
and more interoperative to transfer arrays of items around than to try
to pass collections.


- --
Corruptisima republica plurimae leges. [The more corrupt a republic, the
more laws.]
Tacitus from Annals III, 116AD
Blogs: http://jamesruminations.blogspot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCx2mJJ/zyYkX46joRAjsFAJ0XNDuwiBBp33R9i0zEyqRxk0cfCQCcC/K9
8PZcU0ml5TZP2AKPgPBVBlM=
=o8qj
-----END PGP SIGNATURE-----

Reply via email to