How to implement doc/literal webservice with RoR?

I implemented a service use RPC.
But I think doc/literal service is more useful to me.
Where can I find some library to support doc/literal?
Thank you.