Hi, i''ve a rails app and i''d like to add a web service to permit of get data from external. What should i use to do this? I''ve seen that for create a web service there is rest and soap, which is better? I''m already using rest for the normal using of the web app, should i stay stick with it? I know that with soap exist wsdl and other stuff, what should i need for rest? Do you have any link that expain better this? i''ve googled, but a lot of stuff are useless :( thank you -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Refer to the links, they are straight forward and gives you reasons to make a choice based on your requirements. http://www.ibm.com/developerworks/opensource/library/os-ws-rubyrails/index.html http://www.datanoise.com/articles/2008/7/2/actionwebservice-is-back On Wed, Mar 11, 2009 at 3:54 PM, Xdmx Xdmx <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, i''ve a rails app and i''d like to add a web service to permit of get > data from external. > What should i use to do this? I''ve seen that for create a web service > there is rest and soap, which is better? > I''m already using rest for the normal using of the web app, should i > stay stick with it? > I know that with soap exist wsdl and other stuff, what should i need for > rest? > Do you have any link that expain better this? i''ve googled, but a lot of > stuff are useless :( > thank you > -- > Posted via http://www.ruby-forum.com/. > > > >-- -- Thanks & Regards, Sumanth Krishna. A +358 40 3276564 Blogs: TwinclingCommunity: http://sumanthtechsavvy.blogspot.com/ http://www.twincling.org/node/227 http://yourway2health.blogspot.com/ http://www.osef.twincling.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Refer to the links, they are straight forward and gives you reasons to make a choice based on your requirements. http://www.ibm.com/developerworks/opensource/library/os-ws-rubyrails/index.html http://www.datanoise.com/articles/2008/7/2/actionwebservice-is-back On Mar 11, 3:54 pm, Xdmx Xdmx <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, i''ve a rails app and i''d like to add a web service to permit of get > data from external. > What should i use to do this? I''ve seen that for create a web service > there is rest and soap, which is better? > I''m already using rest for the normal using of the web app, should i > stay stick with it? > I know that with soap exist wsdl and other stuff, what should i need for > rest? > Do you have any link that expain better this? i''ve googled, but a lot of > stuff are useless :( > thank you > -- > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sumanth Krishna wrote:> Hi, > Refer to the links, they are straight forward and gives you reasons > to make a choice based on your requirements. > > http://www.ibm.com/developerworks/opensource/library/os-ws-rubyrails/index.html > http://www.datanoise.com/articles/2008/7/2/actionwebservice-is-back > > > On Mar 11, 3:54�pm, Xdmx Xdmx <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>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)? p.s. actually i don''t know the requirements, i''m just looking on which is the best practice to develop a web service :) -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---