# Writing web services using Ruby

**URL:** <https://www.ruby-forum.com/t/writing-web-services-using-ruby/120153>\
**Category:** Ruby\
**Created:** [November 14, 2007, 6:39am UTC](https://www.ruby-forum.com/t/writing-web-services-using-ruby/120153 "2007-11-14T06:39:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thilinamb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@thilinamb](https://www.ruby-forum.com/u/thilinamb)\
**Post date:** [November 14, 2007, 6:39am UTC](https://www.ruby-forum.com/t/writing-web-services-using-ruby/120153/1 "2007-11-14T06:39:08Z")

</div>

hi,  
i want to write a web service using Ruby. This is not the client, but  
the service.  
Is there any good reference for writing services in Ruby. what i found  
in the web were about writing clients using Ruby. But i want articles  
about writing services.

thanks in advance.

regs,  
buddhika

---

<div class="post-metadata">

**Author:** ![thilinamb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@thilinamb](https://www.ruby-forum.com/u/thilinamb)\
**Post date:** [November 14, 2007, 6:59am UTC](https://www.ruby-forum.com/t/writing-web-services-using-ruby/120153/2 "2007-11-14T06:59:40Z")

</div>

Thilina B. wrote:

> hi,  
> i want to write a web service using Ruby. This is not the client, but  
> the service.

Well, you’ll have to define “service”.

> Is there any good reference for writing services in Ruby. what i found  
> in the web were about writing clients using Ruby. But i want articles  
> about writing services.

For REST services (which is likely the path you will want to take), the  
book RESTful Web Services, by Leonard Richardson, is pretty good. It  
seems to have a an unusually large number of small but annoying errors,  
but the fundamental ideas are quite sound and there is a good deal of  
Ruby code in there.

–  
James B.

“Programs must be written for people to read, and only incidentally  
for machines to execute.”

- H. Abelson and G. Sussman  
(in "The Structure and Interpretation of Computer Programs)

---

<div class="post-metadata">

**Author:** ![thilinamb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@thilinamb](https://www.ruby-forum.com/u/thilinamb)\
**Post date:** [November 14, 2007, 9:22am UTC](https://www.ruby-forum.com/t/writing-web-services-using-ruby/120153/3 "2007-11-14T09:22:20Z")

</div>

thanks James.

regs,  
buddhika

---

<div class="post-metadata">

**Author:** ![thilinamb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@thilinamb](https://www.ruby-forum.com/u/thilinamb)\
**Post date:** [November 14, 2007, 2:17pm UTC](https://www.ruby-forum.com/t/writing-web-services-using-ruby/120153/4 "2007-11-14T14:17:10Z")

</div>

On Nov 13, 2007, at 11:39 PM, Thilina B. wrote:

> i want to write a web service using Ruby. This is not the client, but  
> the service.  
> Is there any good reference for writing services in Ruby. what i found  
> in the web were about writing clients using Ruby. But i want articles  
> about writing services.

It’s very easy to write XML-RPC services using Ruby’s standard  
library. See the HOWTO link on this page for multiple examples:

[http://www.ntecs.de/projects/xmlrpc4r/](http://www.ntecs.de/projects/xmlrpc4r/)

James Edward G. II

---

<div class="post-metadata">

**Author:** ![thilinamb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@thilinamb](https://www.ruby-forum.com/u/thilinamb)\
**Post date:** [November 15, 2007, 5:43am UTC](https://www.ruby-forum.com/t/writing-web-services-using-ruby/120153/5 "2007-11-15T05:43:15Z")

</div>

hi,  
i followed a article at the following URL.  
[http://www.devx.com/enterprise/Article/28101/0/page/4](http://www.devx.com/enterprise/Article/28101/0/page/4)

the service was deployed successfully and works fine.I used following  
library.  
soap/rpc/standaloneserver

now i want to get WSDL for this service. I appreciate if you can help me  
with this.

thanks!

buddhika
