Log in

No account? Create an account
A little XML-RPC hand holding please - LiveJournal Client Discussions — LiveJournal [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


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?

[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)