On Sep 3, 12:38 am, Marcin Tyman <m.ty... / interia.pl> wrote:
> Marcin Tyman wrote:
> > 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! :-)
> --
> Posted viahttp://www.ruby-forum.com/.

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