Need help? Check out our Support site, then


Offline/Remote Posting with Java

  1. 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.

    Thanks!

    The blog I need help with is testbp2010.wordpress.com.

  2. You would need to contact staff directly on that at http://en.support.wordpress.com/contact/ .

    In general, you will be going in via http://blogname.wordpress.com/xmlrpc.php and yes, you do have to "authenticate" with the proper password and username.

  3. 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.

  4. 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?

  5. 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.

  6. 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.

  7. @josephscott, Good to know.

  8. I've been trying to use both metaWeblog.newPost and metaWeblog.getPost through the Redstone XmlRpc libraries.

    Both have returned HTTP response codes of 405. All my requests are going to http://testbp2010.wordpress.com and I know that my username and password are correct

Topic Closed

This topic has been closed to new replies.

About this Topic