# Wsdl basic http authentication

**URL:** <https://www.ruby-forum.com/t/wsdl-basic-http-authentication/189518>\
**Category:** Ruby\
**Created:** [June 2, 2010, 9:59am UTC](https://www.ruby-forum.com/t/wsdl-basic-http-authentication/189518 "2010-06-02T09:59:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vetrivel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/dc4da7/32.png) [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Post date:** [June 2, 2010, 9:59am UTC](https://www.ruby-forum.com/t/wsdl-basic-http-authentication/189518/1 "2010-06-02T09:59:46Z")

</div>

Hai ,  
How to do the basic http Authenication in wsdl . Herewith I  
have mentioned my code

require ‘rubygems’  
gem ‘soap4r’  
require ‘DCMSServicesServiceDefinitionsDriver.rb’

obj = DCMSServices.new(endpoint\_url)  
obj.options[“protocol.http.basic\_auth”] \<\< [ wsdl\_url ,username  
,password ].

But the problem is that , http.basic\_auth is not working .
