BalaRaju Vankala wrote in post #1095355:
> Thank you Peter Hickman,
> I am new to develop web services, Can you Explain how its work with an
> Example in Rails ??. I am Searching in google, but I didn't get the
> appropriate result.
> Thanks in Advance
If you would like to see how a well designed REST API (web service) is
put together from the client's point of view take a look here:
http://developer.github.com/v3/
Take note that there are a few different camps for web services, but
they primarily break down into one of three major categories.
1. XML-RPC (Remote Procedure Call) via SOAP
2. WS-* (Web Services - Deathstar) also via SOAP
3. RESTful (Representation State Transfer)
WS-* actually covers both 1 and 2 above, but it was worth pointing out
the two basic types, RPC and Document styles.
Rails is, and has always been, an opinionated framework and RESTful web
services is the clear winner for Rails applications. There is no
build-in support for SOAP. There are some third party gems out there if
you absolutely, positively, are forced to consume SOAP services.
There is far to much to know about web services to try to explain here,
but when done correctly, building a Rails application IS building a
RESTful web service. However, you will want to consider your
application's design from both the perspective of the web user and any
potential web service clients. As I said the GitHub developer is worth
looking at to get a idea of how web services work in Rails.
--
Posted via
http://www.ruby-forum.com/.