You should check out the auth_header example in NaHi's latest snapshots on his website for soap4r. http://rrr.jin.gr.jp/download/ I place my auth in the headers that are sent once, and then a session ID is sent from there on. You need a backend manager to write. If you need help drop NaHi or I an email. I have some experience with soap4r now due to I had to use it for job taking forever. :) --dross --- nkb <nkb / pacific.net.sg> wrote: > Hi. > > I am attempting to use soap to get some info via > https. > My server require user name for authentication. I've > the following codes > set up (via cut and paste from various examples). I > would really > appreciate any help on where should I enter my user > name and password > and if I am missing anything from my codes below? > > > #!usr/bin/env ruby > > require 'soap/driver' > require 'http-access2' > require 'soap/rpc/driver' > > # setup driver > NAMESPACE = 'urn:myhomepage.co.uk:webservices' > URL = > 'https://secure.myhomepage.co.uk/mywebserv/Srvice.asmx' > SOAP_ACTION = 'getData' > HTTP_PROXY = nil > > # create a SOAP::Driver object > driver = SOAP::Driver.new(nil, nil, NAMESPACE, URL, > HTTP_PROXY, SOAP_ACTION) > > driver.addMethod('getData', '1234') > > # finally call the SOAP service > result = driver.getData(lang, input.read) > > output.puts result > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail