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.
Asked
Active
Viewed 104 times
1 Answers
0
Add the following line to the constructor of your RPC Driver Class:
self.options["protocol.http.basic_auth"] << [endpoint_url, user, password]

Alex
- 1