Forum: Ruby WSDL and ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F87dc50070063c54d33b6ce2889f0b5c?d=identicon&s=25 Gady Sujo (gadys)
on 2009-02-19 12:51
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
This topic is locked and can not be replied to.