# soap/wsdlDriver get service methods ONLY

**URL:** <https://www.ruby-forum.com/t/soap-wsdldriver-get-service-methods-only/83740>\
**Category:** Ruby\
**Created:** [January 29, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/soap-wsdldriver-get-service-methods-only/83740 "2007-01-29T12:25:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chucky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b782af/32.png) [@chucky](https://www.ruby-forum.com/u/chucky)\
**Post date:** [January 29, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/soap-wsdldriver-get-service-methods-only/83740/1 "2007-01-29T12:25:06Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![chucky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b782af/32.png) [@chucky](https://www.ruby-forum.com/u/chucky)\
**Post date:** [February 1, 2007, 9:38am UTC](https://www.ruby-forum.com/t/soap-wsdldriver-get-service-methods-only/83740/2 "2007-02-01T09:38:44Z")

</div>

Alin P. 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](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](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.
