[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Showcasing dynamic soap proxy with wsdlDriver

Matt Pruden

3/20/2007 10:43:00 PM

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").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?

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