JoeBlogs wrapper moved to GitHub

Joe Blogs Wrapper V2 – Help required

I’m on the verge of being able to release a second, much improved version of the Joe Blogs WordPress & MetaWeblog API Wrapper.

Some very brief details below, and a cry for help (or several cries!)

New Features / Improvements

Friendlier API
Instead of having to deal with the XML-RPC interfaces directly, I’ve added a “friendly” layer of classes on top.
The WordPressWrapper class has helper methods, with friendly properties, for doing things like uploading files etc…

  • More examples
    The sample project (console application) included in the project demonstrates all methods and features of the library.
  • Better documentation
    XML RPC Comments on all the public properties and methods

Help required

I need help with some of the following, both for this version, and subsequent versions

  • PHP WordPress Re-install script
    Script (configured as CRON job) to “refresh” test install of WordPress (every couple of hours or something)
  • Unit Tests
    Need better code coverage., and more integration tests
    I’m not TDD expert, so unfortunately, a lot of this will be retro-fitting unit tests into the current code.
  • WordPress Plugin development
    I plan to release an “extended” version of XML RPC – with some enhanced methods in, for use with JoeBlogs – for example “GetRecentPosts”
  • ASP.Net Demo Project
    Eventually, and MVC “blog” project, running from WordPress – for no other reason than “it can be done”
  • Moving project to GitHub
    See below
  • General code improvement
    Refactoring, performance enhancements, etc…
  • Logo Designed
    ‘cos every cool open source project has to have a cool logo, right?
  • Website
    I’ve dipped my hand into my pocket, and bought (under £7 – GoDaddy)
    Will have a site dedicated to it on there soon. Obvious CMS choice would be WordPress, but if anyone can think of a better option for Wiki style pages, I’m all ears
    (Media wiki..? What are the benefits?)

Mailing List

I’ve created a Google Group –
Please, sign up on there for announcements (I’ll announce when the next versions of the wrapper are available)


I really like the idea of moving this project over to GitHub.

Problem is, I have absolutely no experience using Git.

I’ve tried following the instructions, and got as far as some files imported into my repository.. but I can’t get it to work, or commit my changes.

If anyone would like to offer their hand-holding expertise on getting this moved over (and training me on committing files etc…) then I’ll gladly move it to GitHub, which long term, I believe could be beneficial to the overall development of the project.

Get in touch

If you’d like to help with ANY of the above (or anything I’ve missed for that matter) please get in touch, or use the Google Group

A few people have recently been asking how the NewPost method works within JoeBlogs

First, you need to create an instance of Post.

Then, set the following properties:

Fairly self explanatory, but you should set this to today’s date (or whatever date you wish the post to be set as published)

The title of the post

The body of the post.
This can of course contain HTML

This is a string array of categories to associate with the post

Another string array, representing the tags for the post

Then, using your presumably already instantiated Wrapper class, you can call the NewPost method, which takes the above Post object as a parameter, and a boolean – indicating if the post is to be set as published. Note – if this is set to false, the post is set in draft mode.

Here’s some sample code:

Hope this helps!

JoeBlogs – Typo in dummy URL fixed

I’ve recently had a few comments that the JoeBlogs wrapper wasn’t working – and they were getting an “invalid response” or more specifically “Response XML not valid XML-RPC – missing methodResponse element.”

It seems that I had a typo in my comments in JoeBlogs.TestHarness/Program.cs on line 15:

The problem, is the xmlprc.php – this should be xmlrpc.php.

Those of you that copy pasted / uncommented out that line, would be executing requests against a file that didn’t exist on your server!

I’ve changed this typo, and committed to Codeplex: revision #27138

Thanks to Felix for pointing this out!

Using JoeBlogs -metaWeblog API Wrapper

Step 1

Download the latest release of JoeBlogs from Codeplex
(Click the Downloads tab, and select the latest download)

Step 2

Unzip the contents of the downloaded zip file.
(I usually copy DLLs I am going to use into a “lib” folder at the root of my solution)

Step 3

Add a reference to BOTH CookComputing.XmlRpcV2.dll AND JoeBlogs.dll


Include AlexJamesBrown.JoeBlogs in your class, with using / Imports:



Step 4:

Instantiate a new Wrapper object.

So far, the available wrappers are:





Please note –

The above example has the Url, Username and Password strings omitted. Simply replace them with the relevant information.

Step 5

You can now take full advantage of all the methods on your instantiated wrapper.


Page 1 of 2