how to get authenticate using wsdl2ruby

107 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 answers

0
Alex On

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

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