I just added a feature that allows my blog to “ping” weblogs.com (using XML-RPC) everytime I add a new post.
What is weblogs.com?
“The core function of Weblogs.Com is a list of weblogs that have changed in the last three hours.” More information
What is XML-RPC? “It’s remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned.” More information
How did you implement this?
I used an XML-RPC Java library from Apache. The code ended up looking like this:
XmlRpcClient xmlrpc = new XmlRpcClient(XML_RPC_URL);<br/>
Vector params = new Vector ();<br/>
params.addElement ("Carter's Blog");<br/>
Hashtable result = (Hashtable)xmlrpc.execute("weblogUpdates.ping",params);<br/>