# RESTful web service, but leaving inbound XML intact

**URL:** <https://www.ruby-forum.com/t/restful-web-service-but-leaving-inbound-xml-intact/127413>\
**Category:** Rails\
**Created:** [January 29, 2008, 12:29am UTC](https://www.ruby-forum.com/t/restful-web-service-but-leaving-inbound-xml-intact/127413 "2008-01-29T00:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c5a1d2/32.png) [@Philip\_N](https://www.ruby-forum.com/u/Philip_N)\
**Post date:** [January 29, 2008, 12:29am UTC](https://www.ruby-forum.com/t/restful-web-service-but-leaving-inbound-xml-intact/127413/1 "2008-01-29T00:29:36Z")

</div>

I’m developing a Rails application which has to process orders via a web  
service. I want to develop this as a RESTful one, and have worked out  
that  
since this is an “INSERT” the call should be a POST.

However first on my list of business requirements is that the inbound  
XML has  
to be stored “untouched”.

It seems that Rails helpfully parses the XML inbound for me.

If someone could describe to me how to add a RESTful web service to  
Rails,  
which calls a method orders/public\_order and which gives me the raw XML  
to  
work with that would be really helpful.

## TIA

Philip N.  
ScotDB Limited  
(removed\_email\_address@domain.invalid)
