wsdl2ruby.rb problem on Windows

J

James Toomey

An earlier post mentioned that whenever he runs wsdl2ruby.rb, "even
when it appears to think about it for a few seconds, I don't get any
output."
He later says, "Yup, I am an idiot. The wsdl2ruby.rb I need to execute
lives in the bin
subdirectory of the SOAP4R distribution directory, not in the lib
subdirectory!"
I'm getting the same problem of no output, but I don't see wsdl2ruby.rb
anywhere in the bin directory (nor do I see a "SOAP4R distribution
directory").
Here are the 2 locations where I see wsdl2ruby.rb:
C:\ruby\lib\ruby\1.8\wsdl\soap\wsdl2ruby.rb
C:\ruby\src\ruby-1.8.4\lib\wsdl\soap\wsdl2ruby.rb
Here's the command I'm running:
ruby wsdl2ruby.rb --wsdl http://www.xmlme.com/WSShakespeare.asmx?WSDL
--type client --force
Any ideas about why nothing's occuring when I run this on Windows?
 
A

anne001

on tiger mac, I ran the program from the soap4r bin directory of the
soap4r folder I had downloaded, and the files were created right in
that bin directory.

Maybe that is what he meant.

I also ran the program with -d and the output was much more verbose.

And I also had to find a different wsdl than the first one I ran.
this one works
http://webservices.amazon.com/AWSECommerceService/2006-03-08/AWSECommerceService.wsdl
You could try it to see if something happens.
 
J

James Toomey

I got it to work. Here's how:
I downloaded the soap4r package from here:
http://dev.ctor.org/download/soap4r-1_5_5.tar.gz
I couldn't find a Windows installation, but I was able to unzip this
file using Winzip (the built-in Windows unzip doesn't recognize the tar
file).
This unzips to a soap4r-1_5_5 folder, which I moved to c:\ruby.
I then ran the wsdl2ruby.rb file that's in the bin directory of this
package, like this:
ruby C:\ruby\soap4r-1_5_5\bin\wsdl2ruby.rb --wsdl
http://www.xmlme.com/WSShakespeare.asmx?WSDL --type client --force
This will create the default.rb, defaultDriver.rb, and
ShakespeareClient.rb files in the C:\ directory.
When you run it, it does display messages such as "creating class
definition", so if it just pauses when you run it, then it's probably
not doing anything. That's what happened to me when I ran the
wsdl2ruby.rb from the C:\ruby\lib\ruby\1.8\soap directory.
Hope this helps anyone else with the same problem.
 

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,968
Messages
2,570,154
Members
46,701
Latest member
XavierQ83

Latest Threads

Top