?

Log in

No account? Create an account
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

March 6th, 2007

org.apache.xmlrpc.XmlRpcException: Invalid fault response [Mar. 6th, 2007|09:15 pm]
LiveJournal Development
lj_dev
[parthy]
[mood |curiouscurious]

          
Hi guys,

I am new to XML-RPC and I have to use LJ's XML-RPC for my program. So here I am trying to figure out how to use the XML-RPC interface. I am getting an org.apache.xmlrpc.XmlRpcException: Invalid fault response when I call LJ.XMLRPC.login.



             XmlRpcClient client = new XmlRpcClient("http://livejournal.com/interface/xmlrpc");
        
            Vector params = new Vector();
            params.add("parthy@livejournal.com");
        
            try{
                Object result = client.execute("LJ.XMLRPC.login", params);
            }catch(Exception ex)
            {
                System.out.println(ex.toString());
                System.exit(1);
            }

I understand that I am not passing the password. But according to the protocol:

  • password(optional):

    • [scalar](required) DEPRECATED. Password of user logging in in plaintext. If using the "clear" authentication method, either this or "hpassword" must be present


So password is optional. It looks like my result is wrong. Any ideas?


thanks a ton.

parthy
link7 comments|post comment

navigation
[ viewing | March 6th, 2007 ]
[ go | Previous Day|Next Day ]