From: Chris Carter Date: 2007-02-23T07:18:02+09:00 Subject: Re: Soap add_method On 2/22/07, Justin Mazzi wrote: > 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! > > -- > Posted via http://www.ruby-forum.com/. > > 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 -- Chris Carter concentrationstudios.com brynmawrcs.com