Soap add_method

J

Justin Mazzi

Is there a way to set default arguments for soap methods?

i.e.

proxy.add_method('value1','value2'='something')



I need to pass a long a username and password with each soap call.
please let me know, thanks!
 
J

Justin Mazzi

Justin said:
Is there a way to set default arguments for soap methods?

i.e.

proxy.add_method('value1','value2'='something')



I need to pass a long a username and password with each soap call.
please let me know, thanks!

I would also like to add, this is not Basic auth(http auth). This is
simple passing a variable called username and password with each call.
 
C

Chris Carter

Is there a way to set default arguments for soap methods?

i.e.

proxy.add_method('value1','value2'='something')



I need to pass a long a username and password with each soap call.
please let me know, thanks!
Hi Justin, I don't know exactly how SOAP4R handles this, but you could
add the method normally, and writte a wrapper to call the method with
the attributes:
class << soap_object
def really_cool_method(*args)
self.cool_method:)value1 => "blah, args)
end
end
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,229
Latest member
GloryAngul

Latest Threads

Top