WSDL and ruby

Reply

Join Date: Feb 2009
Posts: 1
Reputation: gadys is an unknown quantity at this point 
Solved Threads: 0
gadys gadys is offline Offline
Newbie Poster

WSDL and ruby

 
0
  #1
Feb 25th, 2009
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

----------------------------------------------------------------

  1. begin
  2. class MyServer < SOAP::RPC::StandaloneServer
  3.  
  4. # Handler methods
  5. def add(a, b)
  6. return a + b
  7. end
  8. def div(a, b)
  9. return a / b
  10. end
  11.  
  12. # Expose our services
  13. def initialize(*args)
  14. add_method(self, 'add', 'a', 'b')
  15. add_method(self, 'div', 'a', 'b')
  16. end
  17.  
  18.  
  19. end
  20. server = MyServer.new("MyServer",
  21. 'urn:ruby:calculation', 'localhost', 8080)
  22. trap('INT'){
  23. server.shutdown
  24. }
  25. server.start
  26. rescue => err
  27. puts err.message
  28. 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.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 1
Reputation: unleashbf is an unknown quantity at this point 
Solved Threads: 0
unleashbf unleashbf is offline Offline
Newbie Poster

Re: WSDL and ruby

 
0
  #2
May 11th, 2009
Do you try Ruby's SOAP WSDL Driver ? it can parse a WSDL file and make the appropriate methods available automatically.
Last edited by unleashbf; May 11th, 2009 at 2:55 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Ruby Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC