Forum: Radiant CMS Consume web service from extension

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bill Rowell (Guest)
on 2007-05-16 04:16
(Received via mailing list)
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
Sean Cribbs (Guest)
on 2007-05-16 05:50
(Received via mailing list)
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
Bill Rowell (Guest)
on 2007-05-20 21:39
(Received via mailing list)
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-w...

-Bill
This topic is locked and can not be replied to.