?

Log in

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

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

A little XML-RPC hand holding please [Sep. 24th, 2003|04:36 pm]
LiveJournal Client Discussions

lj_clients

[oosabeansaladen]
I'm having difficulty figuring out how to programmatically build the parameter structure using Java and XML-RPC. I'm using org.apache.xmlrpc I'd like to see what code I need to write if I just want to login to LJ. I figured this much:
XmlRpcClient xmlrpc = new XmlRpcClient("http://www.livejournal.com:80/interface/xmlrpc");

XmlRpcClient's method to call procedures is
public Object execute(String method, Vector params)

If I want to login to my LJ account, LJ's XML-RPC API specifies that I have to use a struct of key/value pairs for the params. However, the Vector structure does not have keys... only values. So I'm kind of at a loss on what to do. How do you populate the vector with the right values? and how do you retreive the values from the returned Object when, say, the login procedure returns?
linkReply

Comments:
[User Picture]From: oosabeansaladen
2003-09-26 08:21 pm (UTC)

Re: why XML RPC?

Well I'm already gonna get some multi-language linking experience because SWT doesn't support all the features I want to implement. For example, there's no support for tray icons in SWT so I'm gonna do my own C or C++ library to implement this for each platform.

I don't really feel like reusing parts of other projects since I would lose an opportunity to learn new things by having to implement them myself.

BTW, if I ever release my project to the public, it's not gonna be called Sema-J or anything close to the Semagic name. And I'm gonna change the GUI so that people don't think it's your project they are using. Just so that people don't get confused.
(Reply) (Parent) (Thread)