Wsdl2ruby.rb problem on Windows

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?

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.

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.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

James Toomey wrote:

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

You need to obtain wsdl2ruby.rb command line program from
http://dev.ctor.org/soap4r/browser/trunk/bin/wsdl2ruby.rb . This
command line program uses above file you wrote as a library.

Command line programs are not included in Ruby distribution.

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRLxnAh9L2jg5EEGlAQI2egf/eDUCkmQKd35rF2JjDsKs8ZpQ24kXa2Ej
X9nM9gFtGFNLhDQ5lYcbuseHtiT9pIDcA9oG0QMU+YQgN4/S3cD6Ni3IHJP2++v2
KE+BC857MwOQhxLqFVswnwSCHcDGsszk/r6ScE8fH6NpxWVb9RDv/EyvSvV3D1xL
MqtToSwseT3YpKcV9aHuP2gg3yPxXlH2G3sfONFgvhJjXQ6gOJWILnRbWITdeZ+v
2r0hn9vf7KPnefuNUXQEoOxTbLEmqcA20dXHt6izMBXTGbsHV9vJnWbMVPAXcJFO
okoohIv7Q/1qVRqsJD5df90y+gjJdsHgZQaLB9ApHV/CiYaIJ1k/Qw==
=080/
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs