WSDL and ruby

G

Gady Sujo

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top