Re: Rails Web services (in general), HTTP GET and JSON and other topics



On Tue, May 01, 2007 at 04:30:05AM +0900, dt wrote:
I like SOA, I like Ajax, I like Ruby/Rails, but I am in doubt how to
make some things.

You'll get better answers from the RoR google group. You've come to the Ruby
Language mailing list.

- Does anybody know a good tutorial about Rails Web services? I have
searched the Net, but I couldn't find anything else then a simple
examples (e.g. http://manuals.rubyonrails.com/read/book/10), which do
not answer many of my questions.

Buy a copy of "Agile Web Development with Rails" (as PDF or full paper
book). Chapter 25 is all about web services on Rails.

- How should I be able to make a service in Rails that uses HTTP GET
instead of SOAP or XML methods?

Perhaps you want to consider RESTful routing instead of web services.

GET /things -- returns a list of things (as HTML)
GET /things.xml -- returns a list of things (as XML)
GET /things/1 -- returns thing number 1
GET /things/1.xml

Brian.

.



Relevant Pages