If the web API is a soap interface then use savon, otherwise nokogiri works great, depending on the amount of requests you're doing, you might want to use a non blocking http client.
- Matt Sent from my iPhone On Jul 5, 2011, at 21:44, Allan Schougaard <[email protected]> wrote: > I have had good experiences with Savon: http://savonrb.com > > --Allan > > From: Ylan <[email protected]> > To: [email protected] > Sent: Tue, July 5, 2011 6:29:31 PM > Subject: [SDRuby] Should I use Nokogiri and HTTParty for a consuming an xml > web service? > > Hey Everyone, > > I find myself in need of consuming a xml web service. It looks like I'll need > to: > > - Create post request with an xml document in the body of the request. > - Parse the resulting xml and do some mapping to my ActiveRecord objects and > handle errors. > - Do this for about 5 different requests / responses. > > My research suggest that the tools to use are: > - HTTParty for communicating with the web services server. > - Nokogiri for the XML creation and parsing > > Does anyone have any other recommendations? > > I appreciate the input. > > -- > Ylan > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
