BlogCFC XML-RPC & Windows Live Writer


I recently decided to take a shot at creating Blog entries to BlogCFC through a desktop publishing application. ScribeFire, is a nice tool that offers the ability to create Blog posts directly to from Firefox. Yet, it lacked quality functionality and support that is required for those that are doing serious publishing. While searching through the ColdFusion Blogging community lately, I  ran across several articles suggesting the use of Google Docs as a method for posting to BlogCFC too. I really didn’t  care for that method either.

So I managed to find a reference on Ray Camden’s Blog to using Windows Live Writer via XML-RPC.  BlogCFC has been supporting XML-RPC for some time now, so I was eager to start using it after I figured out what it was actually was capable of doing. For those that are not familiar with XML-RPC, it is a specification that allows connections between two computers through remote procedure calls to XML.

The reference on Ray’s site was to a demo from Dan Vega, which explains how to get the writer up and running. Several things have to be pointed out though. First, the categories from BlogCFC are not editable from WLR. To edit those, you’ll have to go in to the BlogCFC admin. Second, the style sheets from BlogCFC don’t seem to import correctly. That doesn’t seem to carry over in the post though so personally I can handle dealing with it. Another thing is, deleting posts from within WLR, will remove the entry from the Blog, but not from the xmlrpc.cfm cache or, rather the ScopeCache.cfm template … in order to deal with that, you might want to add the code below to the xmlrpc.cfm file, just below the blogger.deletePost case switch statement around lines 185-190.

[code language=”cf”]

<!— clear cache —>
<cfmodule clearall="true" scope="application" template="../tags/scopecache.cfm">


This way the Blog’s cache will update whenever you delete a post … Much thanks goes out to Shane for that.

All and all, I must admit that editing in WLR is very clean – much nicer than working directly in an online editor, and though WLR does not have the power of a word processor, or the design and HTML editing capabilities of an IDE, it is still a nice tool to use for creating blog posts.

The following two tabs change content below.
Edward J. Beckett is a passionate software engineer, web developer, server administrator and polyglot programmer with nearly a decade experience building desktop and web applications ranging from simple personal web sites to enterprise level applications on many technology stacks including Java, Java EE, Spring, Spring MVC, Spring Data, Hibernate, SQL, JPA, JMS, HTML, CSS, JavaScript, ColdFusion, PHP, Node.js and more...
  • Oyun

    thankss you..