From: John W Higgins Date: 2010-12-09T03:50:35+09:00 Subject: Re: Consume Soap Service with Basic Authentication --0016367f9e028c5da50496ea9836 Content-Type: text/plain; charset=ISO-8859-1 Good Morning, On Wed, Dec 8, 2010 at 9:42 AM, Chris Gunnels wrote: > I have been searching and trying different gems to get this to work, but > can't. I need to consume a soap service that's protected with Basic > Authentication. I have tried the following: > > wsdl = "https://soapservice.com" > client = SOAP::WSDLDriverFactory.new(wsdl) > soap = client.create_rpc_driver > > soap.options['protocol.http.basic_auth'] << [wsdl, 'my_user_name', > 'my_pass'] > > with this i get "basic_auth is not supported under soap4r + net/http." > You need the httpclient gem. It's the Soap4R's preferred client as opposed to net/http John --0016367f9e028c5da50496ea9836--