Javablogs supports notification of blog updates with a remote API, which enables new blog post to appear on Javablogs immediately (
javablogs API). I use blogger and as far as I can tell it doesn't support pinging javablogs.com. So i set out to write my own XML-RPC client to make my posts appear quickly (Yes I'm the impatient type).
Did a search for XML-RPC clients on the web and I found this open source Java library from
Redstone. Downloaded the jar file and followed the instructions on Redstone page and the page describing the
Weblogs API. I have to say when I started on this I didn't think it would be this easy but after about 10 minutes I had it working :).
Just add the following lines inside a main method and execute:
String weblogName = "Living Tao"; String weblogUrl = "http://livingtao.blogspot.com/";
//create a client pointing to the rpc service on javablogs XmlRpcClient client = new XmlRpcClient("http://javablogs.com/xmlrpc", true);
//invoke the method to queue the blog for an update Object token = client.invoke("weblogUpdates.ping", new Object[] { weblogName, weblogUrl} ); System.out.println(token); |
The code will out put the following result on successful execution:
{flError=0, message=Success. 1 blogs have been queued for update}
Don' forget to click the +1 button below if this post was helpful.
3 comments:
Thanks for sharing the info. It is very much useful:
Java Articles
Very insightful post. The platform makes the entire experience feel more focused and goal-oriented cost of studying in UK for Indian students 2026 .It avoids unnecessary distractions and keeps everything on track
I found this article very helpful and engaging. The information was presented in a structured and reader-friendly manner, making it easy to absorb. Your expertise on the subject is evident throughout the post. Thank you for sharing such valuable insights and practical advice with your readers. best courses to study abroad for jobs.
Post a Comment