# WSDL and ruby

**URL:** <https://www.ruby-forum.com/t/wsdl-and-ruby/160759>\
**Category:** Ruby\
**Created:** [February 19, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/wsdl-and-ruby/160759 "2009-02-19T12:51:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gadys](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b5e925/32.png) [@gadys](https://www.ruby-forum.com/u/gadys)\
**Post date:** [February 19, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/wsdl-and-ruby/160759/1 "2009-02-19T12:51:08Z")

</div>

Hi  
I starting to work with ruby and soap and had some questions :

1. how do I generate a WSDL file for the service I created ?  
will it be compatible with an .NET client ?

Thanks,  
Gady

* * *

begin  
class MyServer \< SOAP::RPC::StandaloneServer

```
     # Handler methods
  def add(a, b)
     return a + b
  end
  def div(a, b)
     return a / b
  end

  # Expose our services
  def initialize(*args)
     add_method(self, 'add', 'a', 'b')
     add_method(self, 'div', 'a', 'b')
  end

```

end  
server = MyServer.new(“MyServer”,  
‘urn:ruby:calculation’, ‘localhost’, 8080)  
trap(‘INT’){  
server.shutdown  
}  
server.start  
rescue =\> err  
puts err.message  
end
