title: How do I generate a WSDL using Ruby?
body: <p>I starting to work with Ruby and Soap and had some questions:</p>
  
  <p>How do I generate a WSDL file for the service I created?
     Will it be compatible with an .NET client ?</p>
  
  <hr>
  
  <pre><code>begin
     class MyServer &lt; 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 =&gt; err
    puts err.message
  end
  </code></pre>