# Showcasing dynamic soap proxy with wsdlDriver

**URL:** <https://www.ruby-forum.com/t/showcasing-dynamic-soap-proxy-with-wsdldriver/89517>\
**Category:** Ruby\
**Created:** [March 20, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/showcasing-dynamic-soap-proxy-with-wsdldriver/89517 "2007-03-20T23:42:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lodestone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e495f1/32.png) [@lodestone](https://www.ruby-forum.com/u/lodestone)\
**Post date:** [March 20, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/showcasing-dynamic-soap-proxy-with-wsdldriver/89517/1 "2007-03-20T23:42:58Z")

</div>

I’m attempting to convince some naysayers on the values of dynamic  
languages by creating a fully dynamic SOAP proxy at runtime.  
wsdlDriverFactory is working like a champ. I have two questions. 1) At  
runtime, how do I determine what methods were added dynamically to the  
rpc driver and 2) how do I determine the structure of the parameter hash  
to be passed to a given method? For example:

ws\_client =  
SOAP::WSDLDriverFactory.new(“[http://mywsdl](http://mywsdl)”).create\_rpc\_driver

# works great

ws\_client.methods

# … a big list of methods, is there anyway to see just those that were

specified in the wsdl?

some\_response = ws\_client.mySoapMethod(:key1 =\> value1)

# Is there some way to understand what arguments (keys, values) the

method expects programmatically at runtime?
