?

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:
From: theoyaung
2003-09-25 01:13 am (UTC)

Re: why XML RPC?

ach!

Semagic has wayyyys to go in regards to GUI design... IMHO. I've been tempted to do a LJ client myself too, but I'm restricted by my employer not to release any binaries or source to anything I write while working there (ugh)

How are you detecting music? I looked for a while at the Winamp SDK, it seems like you need to send Windows messages to detect the current song... which would at least make you use JNI, or invoke some platform specific command...

(Reply) (Parent) (Thread)
[User Picture]From: oosabeansaladen
2003-09-25 06:41 am (UTC)

Re: why XML RPC?

Well since I have to distribute a different package for each platform anyways (since SWT uses a native library), I'll make my own shared library for any platform specific stuff (music detection, tray icon, toolbar icons).
(Reply) (Parent) (Thread)
[User Picture]From: oosabeansaladen
2003-09-25 06:55 am (UTC)

Re: why XML RPC?

And as for GUI design, I agree it could be better but it's still the most usable Win32 GUI I've tried. Anyways, my goal is not to design a GUI so much as learn how to use Java and the SWT toolkit.
(Reply) (Parent) (Thread)