Re: Serializing Arrays or Vectors?

Stefan Haustein <[email protected]> Thu, 04 Mar 2004 18:47:09 +0100
Newsgroups gmane.comp.java.enhydra.ksoap
Message-ID <[email protected]>
Hi Clemens,

kSOAP should automatically (de)serialize Java Vectors to/from SOAP arrays=
. It is=20
not able to (de)serialize Java Arrays because of the reflection limitatio=
ns of=20
J2ME.

Best regards,
Stefan Haustein

Clemens Eisserer wrote:
> Hello!
>=20
> kSOAP is really cool and especally the self-made serilization makes the=
=20
> whole process much easier und more flexible than hardcoding the whole=20
> stuff like I do now.
>=20
> Currently my Objekts have a Constructor with a XMLElement as paramater.=
=20
> With the values stored in this element the object is created. Really=20
> ugly...
>=20
> However currently I dont have problems if I=B4ve "methods" that return=20
> multiple things even if I exactly know how much. I simply run a loop as=
=20
> long as there are no xml-elements left in stream and add each object to=
=20
> a vector.
> Can I emulate this behaviour somehow in kSOAP? The only idea I have is=20
> to submit a single object with a string in it. Out of this string I=20
> could generate my objects. This would work, but I belive this is really=
=20
> bad for performance.
>=20
> lg Clemens
>=20
> PS: Under J2SE creating a String out of a StringBuffer or vice versa=20
> doesn't allocate new memory for the content as long as you don't change=
=20
> the content of one of the two corresponding objects.
> Is this also true for J2ME, how doesn this affect to jSOAP if I create=20
> my objects like explained above? (I plan to use 1.2 because I really=20
> need a stable and reliable enviroment and 2.0 seems a little bit two=20
> experimental for my needs)
>=20
> PS2: Thanks a lot for all the help and of course the software itself. I=
t=20
> makes live so much easier!
>=20
> _______________________________________________
> Ksoap mailing list
> [email protected]
> http://www.enhydra.org/mailman/listinfo.cgi/ksoap