how to get authenticate using wsdl2ruby

120 Views Asked by At

I am connecting to a web service using the wsdl2ruby. To access the functions in the webservice I need to authenticate. In ruby how to authenticate with username and password in wsdl2ruby.

1

There are 1 best solutions below

0
On

Add the following line to the constructor of your RPC Driver Class:

self.options["protocol.http.basic_auth"] << [endpoint_url, user, password]