Re: how to register java.util.Vector with classmap?
José Manuel Castro Preciado <[email protected]> Wed, 3 Mar 2004 11:02:15 -0600 (CST)
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
--0-749754565-1078333335=:57399
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by frogger.enhydra.org id i23H42xf027326
Hi..=20
=20
I had a similar problem... try with:
cm.addMapping("http://xml.apache.org/xml-soap","Vector",ElementType.VECTO=
R_CLASS);=20
It works for me... ;)
JM
=20
nikita tovstoles <[email protected]> wrote:
Hi,
i'm trying to send a vector of object via kSOAP. As the FAQ suggests,
i'm using java.util.Vector class as the method parameter. As i
understand, kSOAP does not "know" of that class by default, so i have to
register it with classmap. but what exactly should be the namespace and
name used:
classMap.addMapping("http://schemas.xmlsoap.org/soap/encoding/",
"Vector", Vector.class)?=20
Or is that not possible and i have to create a subclass of vector
implementing kvm serializable and register it (which would really suck
of course:)?
thanks
-nikita
_______________________________________________
Ksoap mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/ksoap
Jos=E9 Manuel
---------------------------------
Do You Yahoo!?
Todo lo que quieres saber de Estados Unidos, Am=E9rica Latina y el resto =
del Mundo.
Vis=EDta Yahoo! Noticias.
--0-749754565-1078333335=:57399
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by frogger.enhydra.org id i23H42xf027326
<DIV>
<DIV>Hi.. </DIV>
<DIV> </DIV>
<DIV>I had a similar problem... try with:</DIV><FONT size=3D2>
<P>cm.addMapping(</FONT><FONT color=3D#2a00ff size=3D2>"http://xml.apache=
.org/xml-soap"</FONT><FONT size=3D2>,</FONT><FONT color=3D#2a00ff size=3D=
2>"Vector"</FONT><FONT size=3D2>,ElementType.VECTOR_CLASS);</FONT><FONT c=
olor=3D#3f7f5f size=3D2> </P>
<DIV></FONT>It works for me... ;)</DIV>
<DIV><BR><U><EM><STRONG><FONT color=3D#00407f>JM</FONT></STRONG></EM></U>=
</DIV><STRONG><EM><U></U></EM></STRONG>
<DIV><BR><B><I></I></B> </DIV>
<DIV><B><I>nikita tovstoles <[email protected]></I></B> wro=
te:</DIV>
<BLOCKQUOTE class=3Dreplbq style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #1010ff 2px solid"><BR>Hi,<BR><BR>i'm trying to send a vecto=
r of object via kSOAP. As the FAQ suggests,<BR>i'm using java.util.Vector=
class as the method parameter. As i<BR>understand, kSOAP does not "know"=
of that class by default, so i have to<BR>register it with classmap. but=
what exactly should be the namespace and<BR>name used:<BR><BR>classMap.a=
ddMapping("http://schemas.xmlsoap.org/soap/encoding/",<BR>"Vector", Vecto=
r.class)? <BR><BR><BR>Or is that not possible and i have to create a subc=
lass of vector<BR>implementing kvm serializable and register it (which wo=
uld really suck<BR>of course:)?<BR><BR>thanks<BR>-nikita<BR><BR>_________=
______________________________________<BR>Ksoap mailing list<BR>Ksoap@enh=
ydra.org<BR>http://www.enhydra.org/mailman/listinfo.cgi/ksoap</BLOCKQUOTE=
></DIV><BR><BR><font size=3D4 color=3Dblack face=3D"Lucida Handwriting, C=
ursive"> <b><i>Jos=E9 Manuel</b></i></font><p><br><hr size=3D1
noshade><b>Do You Yahoo!?</b><br>
<a href=3Dhttp://espanol.yahoo.com/mail_tagline/*http://espanol.news.yaho=
o.com><img src=3D"http://us.i1.yimg.com/us.yimg.com/i/not/dailynews.gif" =
width=3D30 height=3D26 border=3D0 align=3Dleft></a>
Todo lo que quieres saber de Estados Unidos, Am=E9rica Latina y el resto =
del Mundo.<br>
Vis=EDta <a href=3Dhttp://espanol.yahoo.com/mail_tagline/*http://espanol.=
news.yahoo.com>Yahoo! Noticias</a>.<br>
--0-749754565-1078333335=:57399--