# How to pass XML as input for webservice function?

**URL:** <https://www.ruby-forum.com/t/how-to-pass-xml-as-input-for-webservice-function/135213>\
**Category:** Ruby\
**Created:** [April 19, 2008, 8:55am UTC](https://www.ruby-forum.com/t/how-to-pass-xml-as-input-for-webservice-function/135213 "2008-04-19T08:55:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [April 19, 2008, 8:55am UTC](https://www.ruby-forum.com/t/how-to-pass-xml-as-input-for-webservice-function/135213/1 "2008-04-19T08:55:08Z")

</div>

Hi All,  
Suppose i have one function which is defined in web service that  
is save\_request(int,string,int).So i wanna pass the inputs in this  
function like XML format.  
web service also in ROR and i am creating one application in ROR where i  
have to integrate with web service now i wanna pass input as XML in  
webservices functions.

Please help me out.

Looking for your suggestions.

Thanks & Regards,  
Varun G.

---

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [April 20, 2008, 5:37am UTC](https://www.ruby-forum.com/t/how-to-pass-xml-as-input-for-webservice-function/135213/2 "2008-04-20T05:37:32Z")

</div>

google ‘rails web service’ and ‘ruby web service’ perhaps that will  
get you started.  
GL!  
-R

On Sat, Apr 19, 2008 at 12:55 AM, Varun G.
