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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Showcasing dynamic soap proxy with wsdlDriver
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password