[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

soap/wsdlDriver get service methods ONLY

Alin Alin

1/29/2007 11:25:00 AM

Hi,

There is possible by using soap/wsdlDriver to display ONLY methods from
the current service ?

For ex:

wsdl="http://localhost:8080/axis/services/Version?wsdl"
driver=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver

I want to get, from the driver, only the getVersion method (of course, I
don't know the name of it).

Thanks.

Alin.

--
Posted via http://www.ruby-....

1 Answer

Alin Alin

2/1/2007 8:39:00 AM

0

Alin Popa wrote:
> Hi,
>
> There is possible by using soap/wsdlDriver to display ONLY methods from
> the current service ?
>
> For ex:
>
> wsdl="http://localhost:8080/axis/services/Version?wsdl"
> driver=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
>
> I want to get, from the driver, only the getVersion method (of course, I
> don't know the name of it).
>
> Thanks.
>
> Alin.

I find out (or seems to be what I'm looking for):

require 'soap/wsdlDriver'
wsdl="http://localhost:8080/axis/services/Version?wsdl"
driver=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
driver.singleton_methods.each do
|meth|
puts "Method: #{meth}"
end

This is for who is interested in that.

Alin.

--
Posted via http://www.ruby-....