hey everyone can any one help me writing web services.i need web services in in my project. i know purpose of the web services but i have no idea how to write the web services. i refer few site but none of the sites gave a clear information. do i need any gems for web services how do i get the xml output. Thanks in advance -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Tue, Jan 24, 2012 at 12:56 PM, honey ruby <emailtohoneyruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> hey everyone can any one help me writing web services.i need web > services in in my project. i know purpose of the web services but i > have no idea how to write the web services. i refer few site but none > of the sites gave a clear information. do i need any gems for web > services how do i get the xml output. >I responded to a similar request some time ago: https://groups.google.com/d/topic/rubyonrails-talk/YAgraBLcnVc/discussion HTH, Peter -- Peter Vandenabeele http://twitter.com/peter_v http://rails.vandenabeele.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hai! http://www.ibm.com/developerworks/opensource/library/os-ws-rubyrails/index.html Bye:) bdeveloper01 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I think to deploy the server side of a RESTful web service, the built-in support in rails is pretty good. Support for building the client side (ie. consuming a web service) is still not great. You can try using activeResource which promises a similar model as activeRecord but with a web service instead of a database as the back end. Unfortunately, in my experience AResource (as of 3.0.9) falls short of delivering on this promise so I have been writing my models on top of HTTP/S. I would love to hear back what other people are using to implementing a consumer of a RESTful web service. Adrian On 1/24/2012 3:56 AM, honey ruby wrote:> hey everyone can any one help me writing web services.i need web > services in in my project. i know purpose of the web services but i > have no idea how to write the web services. i refer few site but none > of the sites gave a clear information. do i need any gems for web > services how do i get the xml output. > > > Thanks in advance >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Our implementation is pretty simple. in routes.rb build a match route like so: match ''/data_import/input(.:format)'' => ''import_data#xml_received'' create an imports controller then you can create a method that will receive the xml def receive_xml end then you can pass that data using a curl command curl --user xxxx@xxxx:xxxx -i -X GET -H ''Content-Type: application/ xml'' -H ''Accept: application/xml'' -d ''<ROW></ROW>'' http://whatever.com/data_import/input.xml because the file has a .xml extension rails will pick it up and parse the xml. This is a very simple way to do a web service although maybe not the best performance. On Jan 25, 3:46 pm, Adrian Caceres <cacere...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think to deploy the server side of a RESTful web service, the > built-in support in rails is pretty good. Support for building the > client side (ie. consuming a web service) is still not great. You can > try using activeResource which promises a similar model as activeRecord > but with a web service instead of a database as the back end. > Unfortunately, in my experience AResource (as of 3.0.9) falls short of > delivering on this promise so I have been writing my models on top of > HTTP/S. > > I would love to hear back what other people are using to implementing a > consumer of a RESTful web service. > > Adrian > > On 1/24/2012 3:56 AM, honey ruby wrote: > > > > > > > > > hey everyone can any one help me writing web services.i need web > > services in in my project. i know purpose of the web services but i > > have no idea how to write the web services. i refer few site but none > > of the sites gave a clear information. do i need any gems for web > > services how do i get the xml output. > > > Thanks in advance-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
We use soap4r for consuming simple web services, Handsoap for slightly more complex services, and for some truly evil IBM web services, we rolled a custom java command line app that we called from rails. Simon On Thu, 26 Jan 2012 07:46:36 +0800, Adrian Caceres <caceresad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think to deploy the server side of a RESTful web service, the > built-in support in rails is pretty good. Support for building the > client side (ie. consuming a web service) is still not great. You can > try using activeResource which promises a similar model as activeRecord > but with a web service instead of a database as the back end. > Unfortunately, in my experience AResource (as of 3.0.9) falls short of > delivering on this promise so I have been writing my models on top of > HTTP/S. > > I would love to hear back what other people are using to implementing a > consumer of a RESTful web service. > > Adrian > > > On 1/24/2012 3:56 AM, honey ruby wrote: >> hey everyone can any one help me writing web services.i need web >> services in in my project. i know purpose of the web services but i >> have no idea how to write the web services. i refer few site but none >> of the sites gave a clear information. do i need any gems for web >> services how do i get the xml output. >> >> >> Thanks in advance >>-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.