?

Log in

No account? Create an account
XML-RPC: getchallenge: Can't use an undefined value as an ARRAY reference - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

XML-RPC: getchallenge: Can't use an undefined value as an ARRAY reference [Sep. 14th, 2006|02:24 pm]
LiveJournal Client Discussions
lj_clients
[slinky_treecat]
[mood |workingworking]
[music |Daler Mehndi - Tunak Tunak Tun]

I'm building a Flash based client and while trying to generate an XML-RPC call to "getchallenge" I'm getting this error message:

Application failed during request deserialization: Can't use an undefined value as an ARRAY reference at /usr/share/perl5/SOAP/Lite.pm line 1802.

Which leads me to believe that I've not defined a value in my call that the server expects. Can anyone clarify for me what value is being used in /usr/share/perl5/SOAP/Lite.pm line 1802...?

Thank you. :)
linkReply

Comments:
[User Picture]From: beckon
2007-02-17 02:44 am (UTC)
for historical purposes and all that: when actionscript parses the xml into an xml object and then spits it out again it changes it slightly, the xml that ends up getting sent is actually

<methodCall>
    <methodName>LJ.XMLRPC.getchallenge</methodName>
    <params>
        <param/>
    </params>
</methodCall>
</xmp>

and its that param object that causes all the problem.. if you put a valid value in the param field it will fix the problem.

ie
<xmp>
<methodCall>
    <methodName>LJ.XMLRPC.getchallenge</methodName>
    <params>
       <param>
           <string>string</string>
       </param>
    </params>
</methodCall>
(Reply) (Thread)
[User Picture]From: beckon
2007-02-17 02:47 am (UTC)
uhmm ignore the xmp tag... I had some problems formatting it so that html would show up correctly in the post
(Reply) (Parent) (Thread)