Xdmx Xdmx wrote: > Thank you Sumanth, i think i'll go with rest, it seems easier and > lighter... do you know if wadl is needed? or is it possible to give just > the xml as response (as is doing with other requests)?
I'm just going to say it, "You've made the correct decision with REST." Just forget that you every heard the term SOAP and you'll live a much happier life. No you do not need a WSDL with REST. Just send the PO-XML, JSON, Atom, RSS or whatever other "standard" response format that make sense for your action. Also, be sure to take advantage of the HTTP response codes to inform your consumers of any errors that may occur. Basically, all the stuff you should already be doing with your Rails 2.x application. My recommendation would be to take a look at some good existing REST services such as those provided by applications like Lighthouse, Github, Highrise, etc. If you can learn how to consume one of those, then it should help in implementing your services. http://lighthouseapp.com/api http://github.com/guides/the-github-api http://developer.37signals.com/highrise/ P.S. Obviously, this is a personal opinion, but it does follow the opinion of Rails. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

