# Wsdl2ruby.rb problem on Windows

**URL:** <https://www.ruby-forum.com/t/wsdl2ruby-rb-problem-on-windows/98788>\
**Category:** Ruby\
**Created:** [July 18, 2006, 6:37am UTC](https://www.ruby-forum.com/t/wsdl2ruby-rb-problem-on-windows/98788 "2006-07-18T06:37:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Toomey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@James\_Toomey](https://www.ruby-forum.com/u/James_Toomey)\
**Post date:** [July 18, 2006, 6:37am UTC](https://www.ruby-forum.com/t/wsdl2ruby-rb-problem-on-windows/98788/1 "2006-07-18T06:37:45Z")

</div>

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 [Europe 1970](http://www.xmlme.com/WSShakespeare.asmx?WSDL)  
–type client --force  
Any ideas about why nothing’s occuring when I run this on Windows?

---

<div class="post-metadata">

**Author:** ![James\_Toomey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@James\_Toomey](https://www.ruby-forum.com/u/James_Toomey)\
**Post date:** [July 18, 2006, 11:57am UTC](https://www.ruby-forum.com/t/wsdl2ruby-rb-problem-on-windows/98788/2 "2006-07-18T11:57:21Z")

</div>

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](http://webservices.amazon.com/AWSECommerceService/2006-03-08/AWSECommerceService.wsdl)  
You could try it to see if something happens.

---

<div class="post-metadata">

**Author:** ![James\_Toomey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@James\_Toomey](https://www.ruby-forum.com/u/James_Toomey)\
**Post date:** [July 18, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/wsdl2ruby-rb-problem-on-windows/98788/3 "2006-07-18T17:16:13Z")

</div>

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](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  
[Europe 1970](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.

---

<div class="post-metadata">

**Author:** ![James\_Toomey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@James\_Toomey](https://www.ruby-forum.com/u/James_Toomey)\
**Post date:** [July 18, 2006, 6:47am UTC](https://www.ruby-forum.com/t/wsdl2ruby-rb-problem-on-windows/98788/4 "2006-07-18T06:47:00Z")

</div>

-----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](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-----
