Calling web services. Great fun when it works. Thanks to XML-RPC’s simplicity, it’s quite easy to cobble together a working client. Here is me using the Technorati “ping” service, which tells them about the Copenhagen Ruby Brigade’s weblog being updated. And then, prints the result.
My PHP take on this looks klutzy. But the request gets encoded smartly. cURL takes a lot parameters to get running. I write the appropriate headers myself, there.
In Ruby’s standard library, there is a library to do these things. Exciting.
[tags]technorati,xmlrpc,ruby,php,curl[/tags]