March 6th, 2007

  • parthy

org.apache.xmlrpc.XmlRpcException: Invalid fault response

          
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
  • Current Mood
    curious curious