Consume web service from extension

Hey all,

I’m relatively new to Radiant CMS. I’ve had a little success with
understanding how to develop extensions to do custom things for me in a
new
site I’m developing. One thing I’d like to be able to do is consume a
web
service I wrote in another Rails application from my extension. Is
there
any easy way to do this? I was trying to do some things from my page
class
for my extension, however it hasn’t worked out. I’d appreciate some
pointers if anyone has any advice on the correct way to accomplish this.
Thanks!

Regards,
Bill

You might look at the LDAP extension for some ideas. KCKCC.edu uses
(or used) the extension to hit an LDAP server on another machine. The
concept is basically the same – wrap the external service in some
object semantics you can live with, then write tags that allow you to
display the data. Other than that, I have no experience interfacing
with web services. If your backend Rails app is RESTful,
ActiveResource should do the trick.

Sean

Sean,

I took a look at this and it was very helpful. It gave me some ideas to
create a solution, which I’ve written about here:

http://www.billrowell.com/2007/05/20/radiant-cms-web-services/

-Bill