Forum: Ruby on Rails creating xml in controller and send to Web Service

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bhargavi V. (Guest)
on 2009-04-29 12:56
Hi All,

I have a question regarding creating xml in controller class.. I am
designing a rails application, which is a client for java REST based Web
services. in my rails client part, in my view, I have a simple
index.html.erb which consists of 2 strings 'source' , 'destination' . I
will take the input from user and send those to controller class. with
those 2 inputs i need to create a xml file in controller and send that
to REST based web service..
My question is,

1. How to create xml consisting of those 2 values.
if possible,  can anyone tell me How can I send that to REST WS ? As I
am very new to Ruby, I don't have much knowledge on this...


your help is highly appreciated..

Thanks,
Bhargavi.
This topic is locked and can not be replied to.