Hey,
> var proxy = new xmlrpc.ServerProxy(...)
> rstl = proxy.getMethotName()
rslt is already converted, i.e.
the server response(xml data) was converted to a javascript object
by the proxy.
In your example rslt would be an Array containing a single item
the item is an Object containing with two properties, FData1 and
Fdata2. The properties have the values FVar1 and FVar2,
you could access them by
rslt[0].FData1
and
rslt[0].FData2
or
rslt[0]['FData1']
If you are working with jsolait2 or the experimental branch you can
use alert(repr(rslt)) to have a look at the rslt's code reprThis might
make things a bit easier if you are not sure what the object is that
is returend from the call.
> For example, I have this XML answer:
> ==
> <methodResponse>
> <params>
> <param>
> <value>
> <array>
> <data>
> <value>
> <struct>
> <member>
> <name>FData1</name>
> <value>FVar1</value>
> </member>
> <member>
> <name>FData2</name>
> <value><int>FVar2</int></value>
> </member>
> </struct>
> </value>
> </data>
> </array>
> </value>
> </param>
> </params>
> </methodResponse>