creating xml in controller and send to Web Service

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.