| | |
WSDL and ruby
Please support our Ruby advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2009
Posts: 1
Reputation:
Solved Threads: 0
Hi
I starting to work with ruby and soap and had a question :
1. how do I generate a WSDL file for the service I created ?
will it be compatible with an .NET client ?
Thanks,
Gady
----------------------------------------------------------------
I starting to work with ruby and soap and had a question :
1. how do I generate a WSDL file for the service I created ?
will it be compatible with an .NET client ?
Thanks,
Gady
----------------------------------------------------------------
ruby Syntax (Toggle Plain Text)
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
Last edited by peter_budo; Feb 25th, 2009 at 11:09 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- Software Engineer III (Software Development Job Offers)
Other Threads in the Ruby Forum
- Previous Thread: hi
- Next Thread: Ruby: Count to 1 Billion, basing from a C++ Code
| Thread Tools | Search this Thread |





