Offline/Remote Posting with Java
Hi, I’m trying to build a Java offline client for a blogname.wordpress.com blog. To get it working, I wanted to first try some example code using Redstone-XmlRpc, (here: http://www.franzone.com/2007/08/07/wordpress-posting-via-java-part-2/comment-page-1/#comment-4915), but whenever I run it, the server returns a 405 Method not allowed response code. I feel as though it’s authorizing properly, but is still rejected as though it needs to be enabled through the web interface, though I’ve heard that WordPress.com blogs have remote posting enabled by default. Is there some type of authentication I need to do aside from supplying the username and password in my XML-RPC request?
Also, is there a way to use AtomPub to post instead of XML-RPC? If so, what URLs do I authenticate to? I know I can receive a blog in an Atom feed, but I haven’t been able to publish one.
The blog I need help with is testbp2010.wordpress.com.
I’m wondering though why you are building your own? There are quite a number of very good offline editors out there such as Windows Live Writer and BlogDesk – both for Windows and free. For Mac’s, the one I use is Ecto and although it isn’t free, at around $20 it won’t break the bank either.
I’m trying to incorporate this into a larger project that I’m working on which has some design requirements that are most easily handled by a custom client. Thanks for the timely response!
any ideas on using AtomPub?
Everything has to go through the xml-rpc API. I would head to wordpress.ORG and search the codex there. I’m pretty sure you will find what you are looking for there.
What HTTP action are you trying to do that is returning a 405? All XML-RPC requests are done over HTTP POST.
Yes, WordPress.com also supports AtomPub.
The topic ‘Offline/Remote Posting with Java’ is closed to new replies.