parthy (parthy) wrote in lj_dev,
parthy
parthy
lj_dev

  • Mood:

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
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 10 comments