Re: struct of array of structs

"Manuel Fernández Campos" <[email protected]> Thu, 28 Sep 2006 09:00:47 +0200
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
On 9/28/06, John Wilson <[email protected]> wrote:
>
>
>
>
>
>
>
>  On 27 Sep 2006, at 18:53, manuel_fdez_cmpos wrote:
>
>  > I think that this is correct.
>  >
>  > this work perfectly with a C++ client but I need that the client will
>  > be in Java.
>  >
>  > the problem that I have is that the Array it recognizes as an object
>  > and I cannot work with him.
>
>  You don't tell us what Java client you are using. However all the
>  Java implementations I know of will return a struct as a Map and an
>  array as a List. You can turn a java List into an array by calling
>  toArray on it.
>
>  John Wilson
>  The Wilson Partnership
>  web http://www.wilson.co.uk
>  blog http://eek.ook.org


I use the apache's Xmlprc library.

Certainly, the struct is return as a HashMap but the array is return
as java.lang.object and if  i try to turn in an array or a vector, one
CastException is thrown.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/