Then I can easy call soap methods with client.method_name, but I’m not
able to figure out if I could get a simple list of paramaters those
methods requires.
I’ve found this ticket [1], with dump_method_signature that seems to be
something like what I’m searching for, but I could’t understand how to
use it.
I took :param1 and :param2 names directly from the wsdl method
definition.
Otherwise, you can use wsdl2ruby…
Hope it helps
First of all, thanks for your answer
The problem is that I have to automatically build html form from each
soap method, so I have to know how and how many params each method takes
without look in the wsdl…
Have you tried sending dump_method_signatures to a WSDLDriverFactory
object?
Right now I’m on a windows machine (with ruby 1.8.6) and
WSDLDriverFactory doesn’t have that method, so I can’t try. It should
include WSDL::ClassDefCreatorSupport and so you should be able
to call dump_method_signatures.
Otherwise, you could try to iterate on the services/ports of the wsdl
attribute of a factory object, just like dump_method_signature does. I
am no expert, so don’t take my suggestions too seriously
Have you tried sending dump_method_signatures to a WSDLDriverFactory
object?
Right now I’m on a windows machine (with ruby 1.8.6) and
WSDLDriverFactory doesn’t have that method, so I can’t try. It should
include WSDL::ClassDefCreatorSupport and so you should be able
to call dump_method_signatures.
Otherwise, you could try to iterate on the services/ports of the wsdl
attribute of a factory object, just like dump_method_signature does. I
am no expert, so don’t take my suggestions too seriously
Bye
Hi Capitan Y., and thanks again for your answer
dump_method_singature works, but only for simple type. For complex ones,
it only show type’s name.
Have you tried sending dump_method_signatures to a WSDLDriverFactory
object?
Right now I’m on a windows machine (with ruby 1.8.6) and
WSDLDriverFactory doesn’t have that method, so I can’t try. It should
include WSDL::ClassDefCreatorSupport and so you should be able
to call dump_method_signatures.
Otherwise, you could try to iterate on the services/ports of the wsdl
attribute of a factory object, just like dump_method_signature does. I
am no expert, so don’t take my suggestions too seriously
Bye
Hi Capitan Y., and thanks again for your answer
dump_method_singature works, but only for simple type. For complex ones,
it only show type’s name.
I’ve tried for several days to resolve my problem, I think I’ll give it
up
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.