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

Reply via email to