Hello, I would like to make some REST calls in my rails application which will then parse the XML results and display them in a view. What I am having a hard time doing is figuring out how to make the actual REST Call? I have figured out how to use XMLRPC , but the site only supports REST. Is there an easy way to initiate the GET/POST REST Calls that I need to make and analyze the returned XML? Thanks Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060809/f20c3a3d/attachment-0001.html
On 8/9/06, straightflush@gmail.com <straightflush@gmail.com> wrote:> I have figured out how to use XMLRPC , but the site only supports REST. Is > there an easy way to initiate the GET/POST REST Calls that I need to make > and analyze the returned XML?http://blog.inquirylabs.com/2006/08/04/how-to-use-curl-to-test-restful-rails/
Thanks but I am looking for my rails app to be a REST Client, not a REST server. Right now I am just using open-uri to initiate a get request and then feed the result into REXML to parse the output. I am assuming there is a cleaner way to handle this. Adam On 8/9/06, Stoyan Zhekov <stoyan@gmail.com> wrote:> > On 8/9/06, straightflush@gmail.com <straightflush@gmail.com> wrote: > > > I have figured out how to use XMLRPC , but the site only supports > REST. Is > > there an easy way to initiate the GET/POST REST Calls that I need to > make > > and analyze the returned XML? > > > http://blog.inquirylabs.com/2006/08/04/how-to-use-curl-to-test-restful-rails/ > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060809/16f3f7ec/attachment.html
see this blog if it helps http://rorwebser.blogspot.com/2006/07/web-service-in-rails.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060810/25590013/attachment.html