N
nkb
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:river object
driver = SOAP:river.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
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:river object
driver = SOAP:river.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