Search the web
Sign In
New User? Sign Up
jsolait
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
The first experience - ServerProxy.   Message List  
Reply | Forward Message #289 of 411 |
Re: The first experience - ServerProxy.

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>







Mon Oct 16, 2006 8:28 am

keyjaque
Offline Offline
Send Email Send Email

Forward
Message #289 of 411 |
Expand Messages Author Sort by Date

Hello dear members of jsolait group. I have a small experience with jsolait. Main question: How I can make request to the server. Request example: ...
andrey_zavada
Offline Send Email
Oct 11, 2006
9:18 am

... that should be: var proxy = new xmlrpc.ServerProxy(...) rstl = proxy.getMethotName() if that does not work, please put the error message in your post so ...
Jan-Klaas Kollhof
keyjaque
Offline Send Email
Oct 12, 2006
7:51 am

Hello dear Jan. Thank you for your answer. It has helped me. But I have one more question. My server send me an XML-RPC answer, and I use the DOM model for...
andrey_zavada
Offline Send Email
Oct 16, 2006
3:36 am

Hey, ... 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...
Jan-Klaas Kollhof
keyjaque
Offline Send Email
Oct 16, 2006
8:35 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help