wsdl2ruby

M

Marcin Tyman

Hi,
How can I create a wsdl class using wsdl2ruby. I run it as follows:

wsdl2ruby.rb --wsdl
http://10.10.5.175:8080/wsExtInterface/v2_1/services/WsGroup?wsdl --type
client --force

But nothing happened. So, I have looked into wsdl2ruby.rb located into
ruby\lib\ruby\1.8\wsdl\soap and realized that the code cannot do
anything - it has only class definition. Nothing more.

Have anyone a solution for that?
Thanks in advance for any help or suggestion

MT
 
M

Marcin Tyman

Marcin said:
Hi,
How can I create a wsdl class using wsdl2ruby. I run it as follows:

wsdl2ruby.rb --wsdl
http://10.10.5.175:8080/wsExtInterface/v2_1/services/WsGroup?wsdl --type
client --force

But nothing happened. So, I have looked into wsdl2ruby.rb located into
ruby\lib\ruby\1.8\wsdl\soap and realized that the code cannot do
anything - it has only class definition. Nothing more.

Have anyone a solution for that?
Thanks in advance for any help or suggestion

MT

It lies not in \lib\ruby\1.8\wsdl\soap but in bin\ subdirectory of
soap4r package! :)
 
B

bmunat

It lies not in \lib\ruby\1.8\wsdl\soap but in bin\ subdirectory of
soap4r package! :)

Hey, just to let you know... when I was searching around trying to
find some information on the woefully undocumented Ruby SOAP libraries
I found several links talking about using this wsdl2ruby script. But
then I also found someone using a much more straight-forward approach:
point the WSDLDriverFactory at your wsdl and it just exposes all the
SOAP calls as methods which take a hash for the parameters.

For example, you can do this:

driver = SOAP::WSDLDriverFactory.new('my_wsdl.xml').create_rpc_driver

and then any calls in my_wsdl.xml will be available as methods on
driver, taking a hash of the params. You can just look at the wsdl to
figure out the names... though the driver factory will tell you if
you're missing a required param.

I suppose it's not that far off from generating, but it's less code to
keep around... and I don't have to re-generate if the wsdl changes
(though obviously I might need to change the code that uses the wsdl).

Just thought I'd point that out...

Ben
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top