Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? 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
XML-RPC   Message List  
Reply | Forward Message #58386 of 150553 |
I have spent most of today googling and searching forums looking for
an answer to this and it's getting towards that time on a Friday so my
brain has given up.

Does Flex natively support XML-RPC? I found 1 or 2 examples of it
being used - one of them here:
http://tech.groups.yahoo.com/group/flexcoders/message/549
and when I have been able to get the example code to work (like the
above one) I have been unable to then get it to work with my own server.
So far each time I have tried I get an unknown method error.

One comment I found was that the webservice class would be better than
the HTTPService class. If so does anyone have an example?

The code I have used is this:

<mx:HTTPService url="{serverSettings.xmlRPCstring}"
method="GET" id="service" result="methodResult(true,event)"
fault="methodResult(false,event)">
<mx:request>
<method>"author.login"</method>
<Customer>108</Customer>
<Name>username</Name>
<Password>Password</Password>
</mx:request>
</mx:HTTPService>

I get the result function call firing but I can't see and data. When I
dig through all the variables in the debugger I eventually come across
a "unknown method" string that is returned by the server.

Can anyone help me with this or do I have to try and get a 3rd party
AS2 library to work with Flex instead?

Many Thanks

Giles




Fri Dec 8, 2006 4:43 pm

z4guyuk
Offline Offline
Send Email Send Email

Forward
Message #58386 of 150553 |
Expand Messages Author Sort by Date

I have spent most of today googling and searching forums looking for an answer to this and it's getting towards that time on a Friday so my brain has given up....
z4guyuk
Offline Send Email
Dec 8, 2006
5:55 pm

I am not familiar with "XML-RPC", but I suspect that the answer to your question is no. Can you do an ordinary HTTPService call successfully? This: ...
Tracy Spratt
nts333rd
Offline Send Email
Dec 8, 2006
6:12 pm

Thanks for the reply. The lib I use at the moment (for actionscript 1 in player 6) is here: http://members.netmadeira.com/killer/xmlrpc/ and some details here:...
Giles Roadnight
z4guyuk
Offline Send Email
Dec 8, 2006
9:12 pm
chuvakgu
Offline Send Email
Dec 9, 2006
2:02 am

What do you use on the server side?. If you;re using java on the server side you can call a method on the server side if your http controller is properly...
Valy Sivec
valysivec27
Offline Send Email
Dec 8, 2006
8:09 pm

Funny you should ask. http://xmlrpcflash.mattism.com/ is for AS 2. I converted it to AS3, fixed some bugs (maybe introduced new ones :), and it seems to work ...
chuvakgu
Offline Send Email
Dec 9, 2006
2:03 am

Many thanks, that's hopefully saved me a lot of time! I'll have a go at getting it to work and see how I get on. ... ...
z4guyuk
Offline Send Email
Dec 11, 2006
8:17 pm
Advanced

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