# Wsdl2ruby.rb problem on Windows

**URL:** <https://rubytalk.org/t/wsdl2ruby-rb-problem-on-windows/29050>\
**Category:** ruby-talk\
**Created:** [18 July 2006 04:35 UTC](https://rubytalk.org/t/wsdl2ruby-rb-problem-on-windows/29050 "2006-07-18T04:35:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Toomey](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@James\_Toomey](https://rubytalk.org/u/James_Toomey)\
**Post date:** [18 July 2006 04:35 UTC](https://rubytalk.org/t/wsdl2ruby-rb-problem-on-windows/29050/1 "2006-07-18T04:35:10Z")

</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 [http://www.xmlme.com/WSShakespeare.asmx?WSDL](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:** ![NAKAMURA\_Hiroshi4](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@NAKAMURA\_Hiroshi4](https://rubytalk.org/u/NAKAMURA_Hiroshi4)\
**Post date:** [18 July 2006 04:43 UTC](https://rubytalk.org/t/wsdl2ruby-rb-problem-on-windows/29050/2 "2006-07-18T04:43:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Anne\_G](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Anne\_G](https://rubytalk.org/u/Anne_G)\
**Post date:** [18 July 2006 09:55 UTC](https://rubytalk.org/t/wsdl2ruby-rb-problem-on-windows/29050/3 "2006-07-18T09:55:05Z")

</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://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@James\_Toomey](https://rubytalk.org/u/James_Toomey)\
**Post date:** [18 July 2006 15:15 UTC](https://rubytalk.org/t/wsdl2ruby-rb-problem-on-windows/29050/4 "2006-07-18T15:15:09Z")

</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  
[http://www.xmlme.com/WSShakespeare.asmx?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.
