Brandon Werner

How To Write Java XML Pinging (Technorati, blogs) In To Your Application.

Another very sought after and often Googled code block from my Fatima (JavaPress) project on Java.net is how to use Apache’s XML-RPC to ping update services for blogs, podcasting, email, ect. Many services like Technorati and BlogSpot use XML pinging, and many people get led astray by using Sun’s XML-RPC library which only uses SOAP.

You must use Apache’s XML-RPC. Why? Since SUN Microsystem’s API(s) insist on using SOAP as the transmission protocol but integrators wish to have XML sent instead, you have to use the xmlrpc-1.2 code from the Apache Foundation. Technorati and others don’t accept a SOAP envelope obviously.

So, here is a ping service for you. Just download Apache’s XML-RPC and call the class.

Do to formatting issues in Internet Explorer, I can no longer include the code in this post. You may download it from the Fatima project on Java.net directly or view it in JavaLobby.

5 Responses to “How To Write Java XML Pinging (Technorati, blogs) In To Your Application.”

  1. Rob Sanheim Says:

    Not to be picky, but whats with the Vector? :)

  2. Brandon Werner Says:

    First off, cool blog title, although I can’t tell if you or The Dillinger Escape Plan had it first.

    Anyway, I have no clue looking at it why I used a Vector. I think I was expecting params to get a lot more play back then and for memory reasons used it, yet then I went and made it final.

    I’ll just use the Perl excuse: It’s magic.

  3. Brandon Werner Says:

    Wait a minute, looking at it I think it’s Apache’s XML-RPC API that stipulates xmlrpc.execute() takes a Vector(), so blame them :-D

  4. Thorleif Wiik Says:

    Hi,

    the link to the source code of PingIntegrator.java changed,
    the new is:

    https://fatima.dev.java.net/source/browse/fatima/src/net/thepostmodern/fatima/xml/Attic/PingIntegrator.java?rev=1.1&view=markup

    Thorleif

  5. Lorelle on WordPress - Lorelle on WordPress Now Part of Technorati Tools Says:

Leave a Reply