Re: [xwt-users] Passing arrays in xmlrpc calls
"Charles Goodwin" <[email protected]>
| Newsgroups | gmane.comp.java.xwt.users |
|---|---|
| Message-ID | <[email protected]> |
> Hello,
Hi :)
> Is it possible to pass arrays in xmlrpc calls from within xwt ?
Yes, it's possible - at least according to the xmlrpc specification it is:
http://www.xmlrpc.com/spec
<array>s
A value can also be of type <array>.
An <array> contains a single <data> element, which can contain any number
of <value>s.
Here's an example of a four-element array:
<array>
<data>
<value><i4>12</i4></value>
<value><string>Egypt</string></value>
<value><boolean>0</boolean></value>
<value><i4>-31</i4></value>
</data>
</array>
<array> elements do not have names.
> I have a small xwar sample that I run locally against an xmlrpc server.
> It successfully invokes a procedure that echoes back some string. Then
> It calls a procedure to compute the sum of an array of doubles
> But this seems to fail. The xwt logfile shows the following message
> during the 2nd call:
>
> "XMLRPC: at main.1:33
> XMLRPC: attempt to send object of type java.lang.Object
> via XML-RPC"
Hmm I'm not sure how to actually pass arrays, I'm just certain it's
possible. Perhaps it's related to the xwt.dom property.
Upon trying to locate that in the reference, I notice that Appendix F has
been removed from the reference. What, how, why?
- Charlie
The future of webapps - www.xwt.org